yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] Ricky D:
I know I must be becoming a huge pain in your ass..

I managed to figure out what was wrong, I need to uninstall and reinstall SuperSU, then suddenly I could install busybox and I can now mount r/w in root explorer.

But I get another syntax error from the dual recovery scripts...

C:\Users\Richard\Desktop\lockeddualrecovery>install.bat

==============================================
= =
= PhilZ Touch, CWM and TWRP Dual Recovery =
= Maintained by [NUT] =
= =
= For Many Sony Xperia Devices =
= =
==============================================

[ 1. Installation on ROM rooted with SuperSU ]
[ 2. Installation on ROM rooted with SuperUser ]
[ 3. Installation on unrooted ROM using TowelRoot ]
[ 4. Exit ]
Please choose install action. [1,2,3,4]?1
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
=============================================
Waiting for Device, connect USB cable now...
=============================================
Device found

=============================================
Step2 : Sending the recovery files.
=============================================
mkdir failed for /data/local/tmp/recovery, File exists
14 KB/s (29 bytes in 0.002s)
3076 KB/s (15759 bytes in 0.005s)
488 KB/s (501 bytes in 0.001s)
3791 KB/s (11842 bytes in 0.003s)
5012 KB/s (56662 bytes in 0.011s)
1504 KB/s (3082 bytes in 0.002s)
184 KB/s (385 bytes in 0.002s)
4886 KB/s (657704 bytes in 0.131s)
4874 KB/s (3079590 bytes in 0.616s)
4292 KB/s (2682295 bytes in 0.610s)
3754 KB/s (1845655 bytes in 0.480s)
2229 KB/s (9343 bytes in 0.004s)

=============================================
Step3 : Setup of dual recovery.
=============================================
Look at your device and grant supersu access
Press any key to continue AFTER granting root access.
-rwxr-xr-x 1 shell shell 657704 Jun 18 09:42 /data/local/tmp/recovery/busybox
Press any key to continue . . .

##########################################################
#
# Installing XZDR version 2.7.125 BETA
#
#####

Temporarily disabling the RIC service, remount rootfs and /system writable to allow installation.
Copy recovery files to system.
Copy chargemon script to system.
Copy dualrecovery.sh to system.
Copy rickiller.sh to system.
Installing NDRUtils to system.
Copy disableric to system.
Copy busybox to system.
Trying to find and update the gpio-keys event node.
Found and will be using /dev/input/event3!
Trying to find and update the power key event node.
Found and will be monitoring /dev/input/event2!
Speeding up backups.
Make sure firstboot goes to recovery.

=============================================
DEVICE WILL NOW TRY A DATA SAFE REBOOT!
=============================================

=============================================
Your installation has already cleaned up after itself if you see the install.bat/install.sh exit.
=============================================

The syntax of the command is incorrect.
C:\Users\Richard\Desktop\lockeddualrecovery>

You can see it gets much further and doesn't throw any errors till right at the end.
[Sony Cross-Device General] [NUT]:
Actually ... this means it fails AFTER doing all the work. The installation has finished successfully so you should now have recovery.

I wonder which part on the end fails exactly, but I'll look in to that soon.

By the way, you are in way, shape or form a pain in the ass... I'd wish more people would send me bug reports as detailed as you :good:

Keep 'm coming!
[Sony Cross-Device General] Ricky D:
Amazing!

I didn't think it had finished properly due to not having a big neon sign flashing finished and patting me on the head :)

Beer money coming your way :highfive:
[Sony Cross-Device General] [NUT]:
Thanks :cowboy:

I have found the error by the way ;)

https://github.com/xNUTx/XZDualRecovery/blob/2.7-BETA/src/install.bat#L119

look at that line, see what the next one is lacking:

https://github.com/xNUTx/XZDualRecovery/blob/2.7-BETA/src/install.bat#L209

:angel:

Thanks for the useful info and details and I'll certainly have a beer soon :highfive:
[Sony Cross-Device General] juanpirulo:
Nut with the New recovery 2.7.125 for z1 its suppossed we can root the. 757 versión with install.bat option? I meant,the easyroottool is included ?. Cheers

Enviado desde mi C6903 mediante Tapatalk
[Sony Cross-Device General] [NUT]:
126 now online, new twrp and new unrooted install. Should work on all supported models up until the latest firmwares. :good:

Edit

Also included an updated philz, the latest.

Not all devices have had the same update yet (xperia s)
[Sony Cross-Device General] jjpro45:
Tried to root my Tablet Z2 using option 3 and I got syntax error :(

Edit:

Ok i rooted it using Easy Root Tool and it worked. Recovery managed to install sucessfully. All fine. Thank you :) :good:
[Sony Cross-Device General] [NUT]:
Crap, I think I forgot to fix something... :x
[Sony Cross-Device General] [NUT]:
2.7.127 now online, replacing all older releases.

The unrooted install has been debugged completely this time, all little issues resolved.

Please retest everything you might have found and reported in the past, they might have been fixed as both PhilZ as well as TWRP have been updated to the latest public version.

Report people, and don't forget to include logs when reporting issues!
[Sony Cross-Device General] Ohle76:
is when the kernel Z1. 761 or 757? at 127 v

immer freundlich sein.

always be kind.
[Sony Cross-Device General] [NUT]:
[MENTION=2481977]Ricky D[/MENTION] that are errors I can't fix... :(

It's for 757.
[Sony Cross-Device General] Ricky D:
Can't because they're local to me or because you don't know where the cause is or it is outside of your code?
[Sony Cross-Device General] [NUT]:
That are errors caused by the reboot command, which make them errors thrown by android itself. But it was a valid question ;)
[Sony Cross-Device General] apple-part:
Where is the download for Z1C FLASHABLE? There is only the installer vetsion.
[Sony Cross-Device General] [NUT]:
Sorry mate, time to get new glasses :cool: :p
[Sony Cross-Device General] apple-part:
Thanks mate, ordered also new glasses because I'm not 100 percent shure, the link was already there before and I did not see it. [emoji41]

Thank god it's friday! [emoji482]
[Sony Cross-Device General] [NUT]:
:laugh:

It was there, 100% sure ;)
[Sony Cross-Device General] manu1991:
Sorry if this doubt is stupid, don't have a lot of experience using Sony phones. I have a C6802 running 14.3.A.0.757 on a locked bootloader. I have rooted it just now using the Easy Root tool. Now I wanted to install this recovery. On the website, I only see two files for my model - C6802_14.2.A.1.136_Stripped.ftf (20.58MB) and C6802_14.2.A.1.136.flashable.zip.torrent (0.02MB). So do I have to flash the 20 MB ftf first? That will update me to 1.136? Is it region specific? Do I need anything else?
[Sony Cross-Device General] [NUT]:
Why are you asking this in the recovery thread? :eek:

Search for the update thread in the ultra android development section.
[Sony Cross-Device General] manu1991:
just wanted to confirm what the ftf file was for, since the instructions make no mention of it.
[Sony Cross-Device General] [NUT]:
It's recovery unrelated. The instructions on the rom thread do mention them both.

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

[STOCK][C68XX][4.3] Update to 14.2.A.1.136 [Root & XZDR][LB/UB][DE-/ODEX]
[Sony Cross-Device General] NamenIos:
Short bugreport for the ZL and 127:

PhilZ starts with E: Unable to create brightness sys file! In idle the backlight turns not off and the same error gets written a second and third time, likely when trying to switch the backlight off an on again. Time is only working with the qualcomm daemon, and that is glitchy (one hour off aber reboot then i change dst)

TWRP time not working, backlight does not switch off.

CWM not tested.

Where are the logs located for the recoveries? I'll upload them probably Sunday if I don't forget.
[Sony Cross-Device General] nEUTRon666:
Are there any bug reports about recoveries not finding internal or external storages ?
[Sony Cross-Device General] [NUT]:
*sigh*

Just when you think you're done, [MENTION=3280118]geohot[/MENTION] updates towelroot ... which made it all break again.

2.7.128 now online which has only one change:

updated to work with towelroot v2, eliminating the automated download as I integrated the patched app in the installer package.

This should fix the unrooted install, also making it a little more streamlined: one less reboot before it's all done :good:
[Sony Cross-Device General] Bird40:
NUT, thank you for the excellent work.

But in versions 2.7.128 (and .127. and .123) there is an error in the date of the saved backup.

In version 2.7.121, this error did not occur.

ZL (C6503).
[Sony Cross-Device General] brunsman6229:
hy guys,

is the philz nandroid backup fully fonctionnal ??? xperia z2/installer.127
[Sony Cross-Device General] netharshal13:
Dont know what went wrong

Hi Dev,
[MENTION=410007]Nut[/MENTION]

I am on Xperia Z2 .402 Rooted Locked bootloader

I Downloaded Z2-lockeddualrecovery2.7.128-BETA

While installing below screen appear

I dont know what went wrong

Please help

THANKS
[Sony Cross-Device General] RHBH:
Did you restarted your device and tried to get into one of the recoveries?
[Sony Cross-Device General] SxcKieranGrr:
I rooted and installed this recovery on my Z2 using the easy root method. I installed my rom and everything was ok until I couldnt update the binaries on superSU because I installed it through the play store ( I didnt read the instructions properly) anyway I did take a backup before I did flashed anything. However I can't access the recovery, its like its not there and possibly it isnt. I've tried to reinstall it through options 1&2 but I still cant get into recovery. Is there something I can do?
[Sony Cross-Device General] [NUT]:
Yes, try option 3 :D
[Sony Cross-Device General] NamenIos:
Logs:

TWRP: http://pastebin.com/1TrfX5vL

Imo interesting lines:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!

__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!

I:TW_BRIGHTNESS_PATH := /sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl/brightness

I:Specified brightness file '/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl/brightness' not found.

I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'

I:TWFunc::Fixup_Time: not fixing time, it seems to be already okay (after year 2000).

PhilZ: http://pastebin.com/XP5wwrQw

Imo interesting lines:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!

__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

Starting recovery on (UTC) Fri Jan 2 12:00:07 2009

E:Unable to create brightness sys file!

This looks like Kernel incompatibilities, the recoveries were made for the CM Kernel? Even though bionic/libc should handle this. Were do the recoveries use the libc? I am not sure with my assumptions.

Should I post thin in the PhilZ recovery thread and the TWRP one (is there one? TWRP is not oficially supported on the XZL) too?
[Sony Cross-Device General] :
I'm having a small visual bug with the .128 Installer. It gets fixed after flashing the .128 flashable zip. TWRP looks the same way.

Z1 / C6903 / 757 Firmware
[Sony Cross-Device General] gripfly:
Arround a week ago I tried 2 times to restore a backup in CWM(which I did after a clean flash).

Both try failed(If I remember right while restoring data).

Any idea why this happend to me?

Can it be related to the (existenz ultimate) ROM?

Gesendet von meinem C6603 mit Tapatalk
[Sony Cross-Device General] viper9711:
Can i Use the Version 2.7.94 for Xperia Z2? Where do I find it? Can´t see it on Nut´s page. I can only find the 2.7.128 beta for Z2? Is this the latest for this device?
[Sony Cross-Device General] Rootk1t:
yes.
[Sony Cross-Device General] SxcKieranGrr:
Thanks I appreciate the reply and help. I tried option 3 and it still hasn't worked. Whenever I try and boot into recovery it just reboots. I'm a bit out of my depth here so any help is very much appreciated. I managed to make a backup of my stock rom but I can't restore it without recovery, or at least I dont know how. I dont know if this is just coincidence or not but somehow facebook has been deleted and I can't reinstall it, it just gives me an error saying invalid update.
[Sony Cross-Device General] zxz0O0:
Same on Z1C with dualrecovery kernel. Now I am only using TWRP to backup.
[Sony Cross-Device General] gripfly:
So it still works with TWRP for you?

Gesendet von meinem C6603 mit Tapatalk
[Sony Cross-Device General] [NUT]:
Sounds to me philz has some issues with restoring data :o

Make sure you post the recovery logs of anything that fails, we need them to convince Phil to fix it or to find a fix ourselves...
[Sony Cross-Device General] zxz0O0:
Updated to Z1C-XZDRKernel2.7.127-BETA.flashable.zip (from 123) and now Philz backup/restore works. Still sticking to TWRP since I don't want to lose my data again.
[Sony Cross-Device General] rayzaweirdooo:
Can't delete and tranfers any file(folder,pic,vid,music).

Xzdualrecovery

Sent from my C6502
[Sony Cross-Device General] [NUT]:
What android version?

If kitkat, use sdfix from play to change default android kitkat access permissions.
[Sony Cross-Device General] rayzaweirdooo:
Thanks.... It's work....

Sent from my C6502
[Sony Cross-Device General] jonpenn101:
Hi I have a Z2 D6503 i have rooted using the Easy Root Tool and have not unlocked my bootloader (Although my phone is capable). I have downloaded the XZDualRecovery from the site in the first post and ran it. It seems to work, but it doesn't seem to ask me which process I would like it to do, it just seems to run through ending with Step3 : Setup of Dual recovery. Installation Finished. Enjoy the recoveries. Press any key to continue. I do that and it closes my phone does not reboot and no matter how much i try i cannot get into the recoveries.

Am I doing something wrong?

Can you help in any way?

Do you need me to provide and other information?
[Sony Cross-Device General] [NUT]:
Well, a windows version would help ;)

It sounds to me microsh*t has mangled batch yet again...
[Sony Cross-Device General] jonpenn101:
Apologies i'm using Windows 8.1
[Sony Cross-Device General] [NUT]:
Hmm... Then it seems windows 8.1 is the root cause of your problem.

I don't know if there is a compatibility setting left in this version of windows, you could try to set that. In the meantime I'll try to find a solution...
[Sony Cross-Device General] deeps.singh46:
[MENTION=4904057][NUT][/MENTION] bro any plans for xperia M
[Sony Cross-Device General] JohnKersten:
Phone restarts with powersupply

Hello,

I installed the recovery, thanks for that, without any issue.

When I power off the phone (shutdown) and I recharge the phone, then the phone restarts again.

Does anyone has a solution for this behaviour

PS i am still using stock ROM.
[Sony Cross-Device General] jonpenn101:
Thanks NUT will check that out when I'm back at the PC tomorrow!! Appreciate the help!!!
[Sony Cross-Device General] gripfly:
ok. maybe I will do this weekend a backup in twrp and the try to restore a backup in cwm. will upload then the log.

Gesendet von meinem C6603 mit Tapatalk
[Sony Cross-Device General] brunsman6229:
i think it is a problem of "chargemon" file... this issue is not present on my z2 stock firmware .402/ 2.7.127.installerBETA
[Sony Cross-Device General] SxcKieranGrr:
Has anyone got a solution to this?
[Sony Cross-Device General] JohnKersten:
Thanks. I reinstalled and it solved the problem. ?
[Sony Cross-Device General] jonpenn101:
I see no way of running the install in compatibility mode on Windows 8.1, have you had any luck [NUT] ?

edit: found that choice32.exe needs to be run in compatibility mode which you can achieve by right clicking the icon for it. will check the other exe's

Edit 2: Even after setting all exe's to run in compatibility mode the process runs but does not give me chance to choose an option just runs through tells me to "enjoy the recoveries" but still hasn't worked
[Sony Cross-Device General] [NUT]:
Thank you for this elaborate testing mate, much appriciated! :good:

I didn't have much time to check on my side of the pond ... I hope to have some time later today... If at all possible, try to use someone else's PC with windows 8 (without the .1) or windows 7 to install in the mean time...

EDIT:

If you could try Backup TA as well? I got the menu code from [MENTION=5261329]DevShaft[/MENTION]: http://xdaforums.com/showthread.php?t=2292598
[Sony Cross-Device General] jonpenn101:
No problem i'm an IT tech by trade so have a little knowledge. If I can help I will!! :)
[Sony Cross-Device General] [NUT]:
So am I but I try to get round Windows 8 with a huge distance ;)

I'm so waiting for the day I can boot windows out the door for everything I love to do (gaming among other stuff which still is problematic on Linux)

Please notice this request :)
[Sony Cross-Device General] jonpenn101:
Just noticed I am getting this in the command windows should this be coming up?

Edit:

Found a possible issue, put the files on the C: drive as was running from D: it seemed to do a bit more......... investigating!

Edit 2:

Ok so more updates, I now have the whole process running but looks like some processes are being prevented by write access denied, Not sure where to go from here, i have tried with option 3 in case my root wasn't done properly but still no luck.
[Sony Cross-Device General] [NUT]:
Well, can you post a screenshot of the 'working' tool?

You only moved the installer folder to C: and it kicked back to life? Interesting :eek:
[Sony Cross-Device General] jonpenn101:
Here is a notepad of the output when i select option 1, happy to provide anything else you need!

p.s i have ran the Newest Easy Root Tool v5 previous to running your install still no joy.
[Sony Cross-Device General] [NUT]:
Can you check the SuperSU log and see if you granted shell/adb root access then and there?

If you are properly rooted, you should be able to create a random file on /system using any root explorer... can you try that?
[Sony Cross-Device General] jonpenn101:
Checked SuperSU Logs, ADB Shell granted on the spot.

I see, After trying to crate a random file. Access is denied. Something is not working as it should.

Edit: However "Root Checker" says I am Rooted!

---------- Post added at 03:51 PM ---------- Previous post was at 03:22 PM ----------

Do you have any advice? Root checker says i'm rooted, the Easy Root Tool runs through fine and tells me i'm rooted "SuperSU" installs and grants permissions. but it seems i am not rooted???

I don't get it!
[Sony Cross-Device General] [NUT]:
Try easyroottool v6 or retry option 3 from the new disk location

- Unrelated -

2.7.129 released with an updated twrp for the xperia s and an updated philz for all models. This version hopefully fixes the backlight issues on the ZL.

Xzdrkernel will get updated sometime later.

No other changes for now, will be rolling a new update soon though with an updated unrooted installation option.
[Sony Cross-Device General] jonpenn101:
Still a no go! I give up for now it's taking way too much out of my day. (Should be working)

Will keep an eye on the thread see if any developments occur. Thanks for all of your help.
[Sony Cross-Device General] Tungstwenty:
The installer runs fine here for me on 8.1, 64-bits.

I suspect that you won't be able to run choice32.exe on 32-bit installations. When running it manually, I get a dialog with this:

---------------------------
Unsupported 16-Bit Application
---------------------------
The program or feature "\??\C:\...\XZ-lockeddualrecovery2.7.129-BETA.installer\lockeddualrecovery\files\choice32.exe" cannot start or run due to incompatibity with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.

Notice the "unsupported 16-bit app".

Even changing the .exe to win95 compatibility mode doesn't change it.

Any reason for not using choice.exe that's bundled with windows? Perhaps it's missing on some of the users?

I'd suggest fetching c:\windows\system32\choice.exe from an 8.1 32-bit installation (on mine it's a x86-64 executable) and bundling that, or if licensing is an issue you need to find another reusable 32-bit binary but not this one, which is 16-bit and no longer works.
[Sony Cross-Device General] NamenIos:
Sorry for the bad news but the backlight won't turn off in TWRP and there is no picture at all on PhilZ (probably because of my brightness config will reset to default later). After making and eating dinner I'll grab some logs and reset all prefs etc..

edit: time in TWRP also off.
[Sony Cross-Device General] jonpenn101:
Excellent thought's but just tried that too. still no recoveries, for some reason the root process is not working. As i said before i give up for now.

Thanks for trying though!
[Sony Cross-Device General] NamenIos:
Update, here is the TWRP log:

http://pastebin.com/erW3RQrv

error on setting brightness in options:

I:Set page: 'screen'

I:Running command: 'echo 25 > "/sys/class/leds/lcd-backlight/brightness"'

I:echo 25 > "/sys/class/leds/lcd-backlight/brightness" process ended with RC=0 (great so everything ok with writing 25 into the sysfs...)

Deleted the PhilZ prefs and there was still a black screen. Can't navigate to the report bugs option, so no log. If it would really help I could try adb and look around for the log.

But I got another idea, CM switchted to Sony's illumination service some time ago: http://review.cyanogenmod.org/#/c/51531/ The illumination service differs from the XZL - this might be the problem. Rajeev's "Ultimate PureXZL" ROM for Xperia Z works on the Xperia ZL if you use the XZL Kernel. But is has brightness (and gyroscope) bugs, this is fixed by flashing a zip. This zip contains /system/app/SemcIllumination.apk and /system/bin/illumination_service (plus scripts for sensor that are not relevant for our problem) and apparently they fix brightness. Maybe that could help fix this.

A short look at the differences of Yuga (XZ) and Odin (XZL) releaved that the brightness path differs.

Yuga sony_lights.h:

char const*const LCD_BACKLIGHT_FILE = "/sys/class/leds/lm3533-lcd-bl/brightness";
char const*const LCD_BACKLIGHT2_FILE = "/dev/null";
char const*const MAX_BRIGHTNESS_FILE = "/sys/class/leds/lm3533-lcd-bl/max_brightness";
const int LCD_BRIGHTNESS_MIN = 10;

Odin sony_lights.h:

char const*const LCD_BACKLIGHT_FILE = "/sys/class/leds/lm3533-lcd-bl-1/brightness";
char const*const LCD_BACKLIGHT2_FILE = "/sys/class/leds/lm3533-lcd-bl-2/brightness";
char const*const MAX_BRIGHTNESS_FILE = "/sys/class/leds/lm3533-lcd-bl-1/max_brightness";
const int LCD_BRIGHTNESS_MIN = 128;

According to the log TWRP uses: TW_BRIGHTNESS_PATH := /sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl/brightness

find / -iname "*brightn*"( 2>/dev/null − minus errors) in stock returns:

/system/lib/sysmon/sysmon_lcd_brightness_level.so

/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-1/brightness /max_brightness

/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-2/brightness /max_brightness

/sys/devices/platform/msm_fb.524288/leds/lcd-backlight/brightness /max_brightness

I hope there are no typos.

The /rootdir/init.device.rc also has these two backlight sysfs files, that are not present on the Yuga.

For comparing https://github.com/CyanogenMod/android_device_sony_yuga amd https://github.com/CyanogenMod/android_device_sony_odin

Sorry this is a bit chaotic, I am tired. Maybe I'll dig deeper tomorrow, not sure though if I find time before the end of the weekend or Monday.
[Sony Cross-Device General] kenzolo:
Devive Pollux sgp321

Can I use this recovery with cm11 Rom?

If I use cwm included in cm I lost my imei everytime I restore a backup.
[Sony Cross-Device General] [NUT]:
No, sorry, there is no chargemon to hijack in CM, so no XZDualRecovery.

(Possibly in the near future) I will be releasing kernels for CM, AOSP and OMNI too ... but again: XZDR is meant for STOCK firmwares.