yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] zippy01:
Is this permanent for you? I did it via adb and not mountable after reboot again to recovery
[Sony Cross-Device General] McBane87:
Of course not. This has to be done every time you boot into recovery again.

It is only permanent for the current recovery session.

Thats why this has to be done via Boot-Script automatically.
[Sony Cross-Device General] nielneal:
@ McBane87

would it be possible for you to modify the ramdisk of xperia z???? because i dont have linux ubuntu to do it else would have done it

its ok if not possible buddy..;)
[Sony Cross-Device General] McBane87:
Already working on it ;)
[Sony Cross-Device General] zippy01:
Do you have a link to a guide for editing ramdisk on ubuntu? And can this be done with locked bootloader?
[Sony Cross-Device General] nielneal:
here is the guide

http://xdaforums.com/showthread.php?t=2491791

hope it helps
[Sony Cross-Device General] McBane87:
1. Copy recovery.xyz.cpio.lzma to a new directory

2. cd to your directory (all following commands are inside this folder)

3. Unpack LZMA: lzma -d recovery.xyz.cpio.lzma

4. Unpack CPIO: cpio -idmv < recovery.*.cpio && rm recovery.*.cpio

5. Modify files

6. Repack: find . | cpio -o -H newc | lzma > ../recovery.xyz.cpio.lzma

---------- Post added at 01:15 PM ---------- Previous post was at 01:02 PM ----------

Try those Versions (XZ, ZL, ZR, TabZ).

They all have included my Mount-Workaround:

Mega: https://mega.nz/#F!jQ5WUDyK!iB1mz_qrnmvoGiZ0QAEd5w

Mediafire: http://www.mediafire.com/folder/f0l40eht64oyo

Sometimes TWRP is saying something like "No OS installed" if your reboot to system again. This is because it tries to mount /system before my workaround is executed, which is not working, and then remembers this. You can ignore this message.

Flashing/Reflashing Firmware (while you are already on Lollipop) created by PRFCreator is somehow destroying this Workaround. So don't do that!!! You will loose Root-Access!!!

Looks like Restoring own Backups is detroying Workaround , too. Sorry

As a Workaround for this Workaround (*LOL*) you can temporarily flash Kitkat-Kernel , reboot straight into recovery again and Flash your own BAckups or PRF-Flashables the normal way.

With 2.8.18-UNOFFICIAL (see links above) those Problems should be solved

New Workaround Description: http://xdaforums.com/showpost.php?p=61437398&postcount=5544

-
[Sony Cross-Device General] chaot88:
You made my day :laugh: Your Workaround is working fine on SGP321 (UB) and SGP312 (LB) :good::good::good: Have a nice Weekend :)
[Sony Cross-Device General] nielneal:
done working great bro on xperia z;) thank you so much buddy
[Sony Cross-Device General] thunder141:
Is working on my xperia z . Thank you so much
[Sony Cross-Device General] eduardkdrv:
ZL 454! :good::good:!!!
[Sony Cross-Device General] casouzaj:
It's working in Xperia ZQ (ZL) with big bonus!

Thousand thanks to [NUT[, zxz0O0 and all the other members who have been coming up with findings and ideas lately, to make recoveries finally work in Lollipop! Well, 2 weeks ago I dirty flashed LP to my ZQ (same as ZL) through PRF Creator, including the xposed zip, Ever since, Link2SD triggered a reboot whenever it tried to mount the 2nd partition. I had to uninstall it. Don't know if it was caused by Link2SD, but at every reboot, I had to keep the SD card out of its slot until the short vibration in the boot animation, towards the end. Otherwise the phone would be kept in boot loop. Remount Reboot Fix didn't work. Then, I installed XZDualRecovery v2.8.16 from Linux. The first boot haven't required me to remove the SD card. Excellent sign! I decided to install Link2SD again, and it now works! As the last warning in the command screen was 'Installation FAILED' (although it was actually working), I already used Philz to flash the flashable 2.8.16 zip. And TWRP also works! Thanks, again!
[Sony Cross-Device General] McBane87:
About my Workaround:

There seems to be a big bug:

Flashing/Reflashing Firmware (while you are already on Lollipop) created by PRFCreator is somehow destroying this Workaround.

So don't do that!!! You will loose Root-Access!!!
[Sony Cross-Device General] [NUT]:
Actually, the module might be created to be able to replace that module but my installer does not put it in it's place as the module can work as a stand alone version as well.

Are you able to provide us with a copy of the /proc/kmsg again? Maybe the T2Ultra's kernel is different from the Z series as well...
[Sony Cross-Device General] [NUT]:
You can stop working on it if you want (not a request, don't get me wrong!), I'm working on a new release right now implementing your fix in the xzdualrecovery.sh script which runs at recovery boot, which I hope to release within an hour.

I am also compiling a new version of TWRP, which still has the same version number but looking through the Team Win commits, this one takes care of the issues which where bugging the current TWRP version in XZDR 2.8.15 and 16. (the multiple lock on the screen when in screen off mode among others).
[Sony Cross-Device General] [NUT]:
Yah, I should do something about that, because it was previously working fine, I made it a little too strict on Linux/Mac :rolleyes:
[Sony Cross-Device General] McBane87:
:good:

But only to make it clear.

I just tested TWRP on Lollipop with my Workaround.

At first everything is working. But if you flash PRF-FIrmware, after System is extracted, you are not able remount system RW anymore. This causes SuperSU and XZDR-Installation and everything packed into PRF isn't installing. You will have pure Stock rom. So if you don't know why or have fixed this, I would suggest not to release this.
[Sony Cross-Device General] [NUT]:
Perfectly clear. :good:

I also think it might be caused by an 'older' version of the mount applet in busybox. I suspect that should be fixed with doing this after your fix:

/sbin/busybox blockdev --setrw $(/sbin/busybox find /dev/block/platform/msm_sdcc.1/by-name/ -iname "system")

Can you give that a whirl?
[Sony Cross-Device General] sbm1976:
Thank you Thank you Thank you

Perfectly working on my XZR 5.0.2 LB Stock Rooted

And after installed it I can also use Link2Sd

64GB SDcard , 1st 32GB ---- exfat 2nd 31GB ----ext4

No need to install remountrebootfix any more.

Thanks again.
[Sony Cross-Device General] Lemmi1:
SDext partition for link2sd so big? Thought till now that it can only handly up to 2 GB. This sounds interesting to me. So I can make bigger partitions for my apps, great :)

This is the news I waited for. So I can use my Xperia ZR a long time. Will wait for the updated dualrecovery and than I will flash it hopefully!

Thanks to all here for the good work!

Hope it will work too, when lollipop 5.1 will come in july or so ;)
[Sony Cross-Device General] McBane87:
Unfortunately not helping. I've executed it in my script on boot and tried installing PRF-FW again.

But same behaviour after PRF-Flashable finished/failed:

~ # mount | grep system

~ # mount -r /system
~ # mount -o rw,remount /system
~ # mount | grep system
/dev/block/mmcblk0p24 on /system type ext4 (ro,seclabel,relatime,data=ordered)

~ # /sbin/busybox blockdev --setrw $(/sbin/busybox find /dev/block/platform/msm_
sdcc.1/by-name/ -iname "system")
~ # mount -o rw,remount /system
~ # mount | grep system
/dev/block/mmcblk0p24 on /system type ext4 (ro,seclabel,relatime,data=ordered)

You can repeat that unlimited. RW is at this point not possible anymore.

And mount isn't throwing any error.
[Sony Cross-Device General] [NUT]:
I saw in the commits that Team Win did some stuff on the mount part as well, does this also happen in PhilZ?

I'll be releasing 2.8.17 anyway, this way we will know it's not due to repacking the recovery images, to be 100% sure.
[Sony Cross-Device General] pvnsai73:
Yeah ofcuz sir

Here are files(kmsg,dmesg,kallsyms,modules from "system/lib/modules")u required

Hope it helps yu thank yu so much

https://drive.google.com/folder/d/0BxAHIwYT1eNlMkM0VHFFOUd6Mjg/edit
[Sony Cross-Device General] [NUT]:
XZDR 2.8.17 now online, consider [MENTION=4712883]McBane87[/MENTION]'s warning when using on the Xperia Z, ZL, ZR and Tablet Z and be careful.

For all other devices I'm not expecting any issues and that will make this release an improvement, because of the issues fixed in TWRP.
[Sony Cross-Device General] bodomfan:
Do I just download and flash In recovery for remount reboot fix
[Sony Cross-Device General] [NUT]:
yes, if you can.
[Sony Cross-Device General] [NUT]:
Thanks, though can you reboot and grab the kmsg again? This one does not contain the information we will need.
[Sony Cross-Device General] bodomfan:
Which file so I use from op for Xperia z3?
[Sony Cross-Device General] pvnsai73:
Bro without loading byeselinux in kernel wats the use of dmesg nd kmsg

D:\mfastboot-v2>adb shell

shell@D5322:/ $ su

su

root@D5322:/ # insmod /sdcard/byeselinux.ko

insmod /sdcard/byeselinux.ko

insmod: init_module '/sdcard/byeselinux.ko' failed (Exec format error)

255|root@D5322:/ #
[Sony Cross-Device General] [NUT]:
It will give us more info then just that error.
[Sony Cross-Device General] McBane87:
Yep, also happening on PHILZ. Has to be something which is caused by Kernel/Ramdisk.

dmesg for remount:

<2>[ 862.308197] EXT4-fs error (device mmcblk0p24): ext4_remount:4269: Abort forced by user
<2>[ 862.309143] EXT4-fs error (device mmcblk0p24): ext4_remount:4269: Abort forced by user
<6>[ 862.309387] EXT4-fs (mmcblk0p24): re-mounted. Opts: data=ordered

Maybe something wp_mod has to do?

Descriptions says it has something to do with system write access:

#define DRIVER_DESCRIPTION "Defeat system write protect"
[Sony Cross-Device General] pvnsai73:
Bro c this Ïàm jus shocked

D:\mfastboot-v2>adb shell

shell@D5322:/ $ su

su

root@D5322:/ # insmod /sdcard/wp_mod.ko

insmod /sdcard/wp_mod.ko

insmod: init_module '/sdcard/wp_mod.ko' failed (Exec format error)

255|root@D5322:/ #

Even wp_mod.ko also nt injecting

: crying: :'(
[Sony Cross-Device General] Masami1975:
New version fix - r-w system issue for z3?
[Sony Cross-Device General] bodomfan:
Where's that 2 buddy
[Sony Cross-Device General] Masami1975:
When You make a prerooted lollipop rom with Prf sometimes You can't write system...
[Sony Cross-Device General] zxz0O0:
Post the output of these commands

adb shell
su
lsmod
insmod /sdcard/byeselinux.ko
dmesg

Only the last few lines of dmesg are necessary.
[Sony Cross-Device General] McBane87:
Your Version of my Workaround isn't working at all.

You need the correct timing to throw the mount commands. Otherwise they are not executed. Thats why I waited for "/etc/fstab" for example.
[Sony Cross-Device General] Pandemic:
Works the latest version also on Z3 with LP?

Someone can confirm that :)

Sended From My Z3 On Moonwalker Provolution V3.0 To Your Eyes !
[Sony Cross-Device General] kt-Froggy:
Hey [NUT], looks like something is wrong with CWM (both PhilZ and standard) in this release. DPI settings got screwed up somehow, and all the UI is extremely small and hard to work with. The menu height is adjustable, but not the font... You can also tell by the tiling of the wallpaper and the navbar. See the attached screenshot. Also, both CWM recoveries don't seem to recognize the internal SD card (only external).

TWRP is OK. DPI is good, and the internal SD is accessible.

Considering the last post by McBane87, I flashed his unofficial 2.8.16, and everything seems to be working properly in that version, including the GUI and internal SD card access. So happy to actually have a working recovery now! (yes, I understand the warning about flashing ROMs).

[NUT], zxz0O0, McBane87 -- BIG THANK YOU!!! :good:
[Sony Cross-Device General] Rootk1t:
Tried 2.8.17 on TabZ. System is montable, zip flashed from external SD without problems.
[Sony Cross-Device General] pvnsai73:
root@D5322:/ # lsmod

wlan 3718156 0 - Live 0x00000000 (O)

wp_mod 12580 0 [permanent], Live 0x00000000 (O)

root@D5322:/ # insmod sdcard/byeselinux.ko

insmod: init_module 'sdcard/byeselinux.ko' failed (Exec format error)

255|root@D5322:/ # dmesg > sdcard/latest.txt

root@D5322:/ # busybox insmod sdcard/byeselinux.ko

insmod: can't insert 'sdcard/byeselinux.ko': invalid module format

1|root@D5322:/ #

Here r D files but it seems in dmesg byeselinux is nt loaded

https://drive.google.com/folder/d/0BxAHIwYT1eNlMkM0VHFFOUd6Mjg/edit

Thank yu so much sir
[Sony Cross-Device General] Sebi673:
Latest Official Version is [properly] working on XZ C6603. Install method - Via .bat pc Installer.
[Sony Cross-Device General] Boldy72:
Latest Version is working for me on XZ C6603 LockedB aswell.

Install method - Via .bat pc Installer.

Thank you (NUT)
[Sony Cross-Device General] r.ifat381:
Which version should i install for Xperia z? 2.8.16 or 2.8.17?
[Sony Cross-Device General] Rootk1t:
2.8.17
[Sony Cross-Device General] Scr@tchy:
Problem with Kernel Builder

Hi,

i had a problem with the kernel Builder. Whenever I want to upload a kernel I get an error message. The kernel is from the current RR 5.4.7 Rom.Does anyone know a solution?

Thanks
[Sony Cross-Device General] theduke7:
a question m8, if i kept using just the manual (through command line) way, will i be also affected by the workaround bug?
[Sony Cross-Device General] [NUT]:
Hmm, can you retry these commands using the modules stored in /system/lib/modules instead?
[Sony Cross-Device General] dizzy2604:
may i have a question plz.?

SGP321 with LP should have unlocked boolader before installing 2.8.17 XZdualrecovery? my SGP321 is stock LP, rooted (replace kingroot method) but XZD installation is booting into the system.

thank you for an answer
[Sony Cross-Device General] bodomfan:
Which version for Xperia z3
[Sony Cross-Device General] Sebi673:
Huge Issue with latest update. I created a cwm backup and it all seemed fine. After I've got bootloop on some xposed modules, and when I tried to restore it flared error on System restore (partition).

I reflashed, rooted with kingroot, reinstalled the recovery (by the way it can be installed with kingroot) and tried to restore my backup again. Same results - it leaves the phone bricked (sony logo and black screen after).

I'm now reflashing and I'll try to restore via TWRP. I really need some help here :)
[Sony Cross-Device General] McBane87:
Yes. Because in the manual way you are doing the same as the script. The script does nothing more than just typing those commands for you automatically.
[Sony Cross-Device General] [NUT]:
mkdir: can't create directory '/storage/sdcard1/XZDualRecovery': Read-only file system
grep: /cache/XZDualRecovery/XZDR.prop: No such file or directory
grep: /cache/XZDualRecovery/XZDR.prop: No such file or directory

This bit can safely be ignored, because the first boot should correct this if it's not done before.

The byeselinux module exists, testing if the kernel accepts it.
insmod: can't insert '/system/lib/modules/byeselinux.ko': invalid module format
That module is not accepted by the running kernel, will replace it now.
Module installed succesfully.
rmmod: delete_module 'byeselinux' failed (errno 2)

This bit I'm a bit worried about, because this means the initial module was wrong and the installer tried to replace it, but after loading it without issue, it's unable to remove it from the running kernel... Besides that, if I see this, I won't be worried... it should work.

grep: /cache/XZDualRecovery/XZDR.prop: No such file or directory
grep: /cache/XZDualRecovery/XZDR.prop: No such file or directory
XZDualRecovery will unload byeselinux every boot.
Speeding up backups.
mkdir: can't create directory '/sdcard1/clockworkmod/': Read-only file system
touch: /sdcard1/clockworkmod/.hidenandroidprogress: No such file or directory

If the first path issue occurs, this is to be expected but no problem in any way.

I'm not sure why XZDR won't work on your device... do you have an external SDCard installed? If so, can you try to reinstall and reboot without it inserted?

If you use your brain and eyes (which you seem to have, as you are able to write and what you write makes some sense) you would know, you can ask all you want but I'm not answering this question anymore...

Remember that Xposed is notorious for creating bootloops for no apparent reason on Lollipop, my guess is that it's not any recovery causing this, but something Xposed related.

Sometimes it helps formatting data (and not just clearing the dalvik caches), but I'd start by removing ALL installed xposed modules first and then adding them one by one.
[Sony Cross-Device General] theduke7:
What if I will make clean flash (wipe everything) will it cause any problem?
[Sony Cross-Device General] [NUT]:
That's actually very weird. Then the issue is probably caused by a combination of kernel security and recovery mount code...

I can move the 'fix' to postrecoveryboot.sh and see if that helps, because this will run after the recoveries have started and have finished all the preparations to work properly.
[Sony Cross-Device General] McBane87:
Depends on how your clean flash method looks like? :)

Do you mean wipe/format all partitions and then flash PRF-FW again? If so, then no this won't work.

Only way to get around this bug is to flash

temporarily

KitKat-Kernel again and then Boot straight into Recovery (XZDR has to be installed already).

After that you can flash PRF-Firmwares again, which will also flash the correct Kernel again.
[Sony Cross-Device General] pvnsai73:
Here yu go sir

I hope it helps

root@D5322:/system/lib/modules # lsmod

wlan 3718156 0 - Live 0x00000000 (O)

wp_mod 12580 0 [permanent], Live 0x00000000 (O)

root@D5322:/system/lib/modules # busybox insmod byeselinux.ko

insmod: can't insert 'byeselinux.ko': invalid parameter

1|root@D5322:/system/lib/modules # insmod byeselinux.ko

insmod: init_module 'byeselinux.ko' failed (Invalid argument)

255|root@D5322:/system/lib/modules #
[Sony Cross-Device General] McBane87:
Can you try the following?

Inside the Recovery (Installer or Flashable) there should be a Binary called "modulecrcpatch".

Copy this binary to your device into "/system/xbin/". Then correct the permissions with:

chmod 755 /system/xbin/modulecrcpatch

After that do this:

for module in /system/lib/modules/*.ko; do modulecrcpatch $module /system/lib/modules/byeselinux.ko; done

Try if Module is loading and please post output of above command.

Thanks
[Sony Cross-Device General] dizzy2604:
NUT: XZD install without external SD doesn't helped. here is my install log. thank you for any suggestion.
[Sony Cross-Device General] timobzdun:
Don't working kernel builder

Don't uploading kernels from my laptop
[Sony Cross-Device General] McBane87:
About RO-Problem with PRF:

Somehow the Filesystem gets corrupted with the next ZIP-File which is flashed after System itself:

For Example XZDR:

<2>[ 401.038940] EXT4-fs error (device mmcblk0p24) in ext4_new_inode:898: IO failure
<2>[ 401.041961] EXT4-fs (mmcblk0p24): Remounting filesystem read-only

For Example SuperSU:

<2>[ 311.749908] EXT4-fs error (device mmcblk0p24): ext4_mb_generate_buddy:741: group 13, 1 clusters in bitmap, 0 in gd
<2>[ 311.751190] EXT4-fs (mmcblk0p24): Remounting filesystem read-only
<2>[ 311.751373] EXT4-fs error (device mmcblk0p24) in ext4_reserve_inode_write:4356: Journal has aborted
<2>[ 311.752166] EXT4-fs error (device mmcblk0p24) in ext4_evict_inode:171: Journal has aborted
[Sony Cross-Device General] McBane87:
And it is still not loadable?
[Sony Cross-Device General] pvnsai73:
Still its nt loading

C D proof

127|u0_a214@D5322:/ $ su

root@D5322:/ # dmesg | grep byeselinux

1|root@D5322:/ #
[Sony Cross-Device General] McBane87:
Don't do grep byeselinux. If the module isn't able to load the error message inside dmesg can't be from this module. You have to look if there is a normal system message inside dmesg about a module that it couldn't load.
[Sony Cross-Device General] pvnsai73:
I'm not getn yu Bro Wat ur sayn

If u want dmesg I have already posted it before check

Thanks a lot fr working
[Sony Cross-Device General] McBane87:
I'm saying that those lines in DMESG which are begin with "byeselinux: ..." are created by the Module "byeselinux.ko". But this Module isn't loading in your case. So how should this Module produce those logs without beeing loaded? You will never find any lines like that without proper working Module. So don't search for them....

BUT instead of Loglines which are from byeselinux , you could see Loglines created by the Linux-System/Kernel itself. So just do "insmod /path/to/byeselinux.ko" and immediatly do "dmesg" after that. And then please post the last 10-20 lines of the output. There somewhere should be something about this Module can't be loaded.
[Sony Cross-Device General] melvinrobertson:
Please can you make a script for xperia devices running lollipop for completly disabled SELinux !
[Sony Cross-Device General] pvnsai73:
Here yu go sir

https://drive.google.com/file/d/0BxAHIwYT1eNlOURzZkRldjdQZ3c/edit?usp=docslist_api
[Sony Cross-Device General] [NUT]:
First of all, I'd say you don't want that: it will allow any app to do stuff you typically don't want to allow...

But there is a switch in the xzdr.prop file, dr.keep.byeselinux, set that to true and the module will remain loaded.
[Sony Cross-Device General] Ardit M:
I've recently installed a pre rooted lollipop Generic NCB ROM on my Xperia ZL and i want to switch to a pre rooted Generic DE via PRFCreator. Can I do this with the newest dual recovery without getting in to a bootloop?
[Sony Cross-Device General] kt-Froggy:
See McBane87's post #5402 several pages back...
[Sony Cross-Device General] McBane87:
This time there is something logged. And yes, I was wrong. Those lines include the word "byeselinux" :)

<6>[ 5953.463546] insmod (13663): undefined instruction: pc=b6d9eb88
<6>[ 5953.463563] Code: e320f000 e320f000 f26001f0 e12fff1e (ec510f1e)
<6>[ 5953.467665] byeselinux: disagrees about version of symbol call_usermodehelper_setup
<4>[ 5953.467682] byeselinux: Unknown symbol call_usermodehelper_setup (err -22)<6>[ 5953.467712] byeselinux: disagrees about version of symbol call_usermodehelper_setfns
<4>[ 5953.467724] byeselinux: Unknown symbol call_usermodehelper_setfns (err -22)
<6>[ 5953.467747] byeselinux: disagrees about version of symbol call_usermodehelper_exec
<4>[ 5953.467758] byeselinux: Unknown symbol call_usermodehelper_exec (err -22)

What kind of Kernel do you use? The rest of Log is full of strange Debug-Messages...
[Sony Cross-Device General] Ardit M:
So do i have to flash the stock KK kernel in order to install the recovery and the New Lollipop ROM? I'm quite a newbie.
[Sony Cross-Device General] McBane87:
The Recovery (XZDR) can be installed on Lollipop, too.

But if you want to flash PRF-Flashables you have to flash KK Kernel first as a Workaround.
[Sony Cross-Device General] Ardit M:
Do i have to install the kernel first, then the recovery? Will it even Boot, if i flash the KK kernel in lollipop?
[Sony Cross-Device General] McBane87:
[Instruction while you are already on Lollipop]

1. Install Recovery via installer

2. Boot into Recovery

3. Flash KK-Kernel

or alternatively

2/3. Flash KK-Kernel via Flashtool

4. Boot straight into Recovery (Lollipop itself won't work)

5. Flash PreRooted PRF Image. (This will replace the KK-Kernel with correct one again)

6. Finished
[Sony Cross-Device General] Ardit M:
Thx for your help! :)
[Sony Cross-Device General] pvnsai73:
Feeln happy :D

Stock Sony kernel bro
[Sony Cross-Device General] Ardit M:
[MENTION=4712883]McBane87[/MENTION]

Should i flash the kernel from .230, .283 FW?
[Sony Cross-Device General] ibis69:
Hi, if coming from rooted 4.4.4 with old XZD installed, it will be ok to flash directly a 5.0 PRF with XZD 2.17 included ?
[Sony Cross-Device General] McBane87:
Both are OK. Just choose one.

Yes, directly is OK.