yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] DiLeon:
yes, adb shell is possible...
[Sony Cross-Device General] JohnKersten:
Still not working on Z2 stock ROM bootloader locked . When choosing PhilZ the phone gets stuck with Sony logo, a hard reset must be done. Starting TWRP and CWRM is no problem. I flashed this version with CWRM.

Keep on your good work. :thumbup:

edit: Installed Z2-lockeddualrecovery2.7.132-BETA.installerr, same problem with PhilZ as above.
[Sony Cross-Device General] evaokay:
Z1 with Z1-lockeddualrecovery2.7.132,PhilZ and TWRP work fine,thanks
[Sony Cross-Device General] [NUT]:
[MENTION=4677694]DiLeon[/MENTION], [MENTION=2621438]CAL7[/MENTION], [MENTION=5127484]JohnKersten[/MENTION]

For Tab Z2 and Z2 only: 2.7.135 now online. I made a mistake while compiling PhilZ, this version should correct that.

Also updated the installer to install using a vanilla towelroot if the sony_ric protection is not found on the device.

Updated CWM to 6.0.5.0, check if the touch/swipe events get registered correctly now.
[Sony Cross-Device General] DiLeon:
TabZ2: still only TWRP working

updated via flashable, does it maybe make a difference when starting from the scratch again (clean system part, re-root)?
[Sony Cross-Device General] [NUT]:
I'm not touching twrp for the time being :laugh:

No need to start over though, this is a philz issue, not an xzdr issue.

As I said in reply to your pm last night, I have one more thing to try.

2.7.36 will be ready for testing in 60 minutes or so. Thanks again :good:
[Sony Cross-Device General] [NUT]:
[MENTION=4677694]DiLeon[/MENTION], [MENTION=2621438]CAL7[/MENTION], [MENTION=5127484]JohnKersten[/MENTION]

2.7.136 now online for the Tab Z2 and Z2 only.

Let me know if it works this time.

don't forget to test swipe operation in the Vanilla CWM itself and please let me know if that works now.
[Sony Cross-Device General] jonpenn101:
Installed on my Z2 No backlight on philz but looks ok otherwise.
[Sony Cross-Device General] [NUT]:
By default the brightness is low: tap PhilZ Settings, tap GUI Preferences, tap 'Set Brightness' until you're satisfied with it. Done :good: :)
[Sony Cross-Device General] DiLeon:
Unfortunately still the same situation: TWRP ok, Philz and CWM not starting
[Sony Cross-Device General] [NUT]:
This is getting ridiculous! :eek: ... I've tested the latest releases on my Z2, PhilZ is working fine for me now, why oh why doesn't it want to work on the TabZ2?!

Can you still adb shell to the stuck recovery?

If so, can you do the following in the shell:

ls -la /sys/class/leds/

Paste the output here, then exit adb, then:

adb pull /tmp/recovery.log

and attach that file here?

Thanks :)
[Sony Cross-Device General] DiLeon:
~ # ls -la /sys/class/leds/

ls -la /sys/class/leds/

__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!

drwxr-xr-x 2 root root 0 Mar 26 06:14 .

drwxr-xr-x 61 root root 0 Mar 26 06:14 ..

lrwxrwxrwx 1 root root 0 Mar 26 06:14 lcd-backlight -> ../../devices/mdp.0/qcom,mdss_fb_primary.169/leds/lcd-back

light

lrwxrwxrwx 1 root root 0 Mar 26 06:14 led:rgb_blue -> ../../devices/leds-qpnp-f6141c00/leds/led:rgb_blue

lrwxrwxrwx 1 root root 0 Mar 26 06:14 led:rgb_green -> ../../devices/leds-qpnp-f6141c00/leds/led:rgb_green

lrwxrwxrwx 1 root root 0 Mar 26 06:14 led:rgb_red -> ../../devices/leds-qpnp-f6141c00/leds/led:rgb_red

lrwxrwxrwx 1 root root 0 Mar 26 06:14 lp8556 -> ../../devices/f9967000.i2c/i2c-11/11-002c/leds/lp8556

lrwxrwxrwx 1 root root 0 Mar 26 06:14 mmc1:: -> ../../devices/msm_sdcc.1/leds/mmc1::

lrwxrwxrwx 1 root root 0 Mar 26 06:14 mmc2:: -> ../../devices/msm_sdcc.2/leds/mmc2::

lrwxrwxrwx 1 root root 0 Mar 26 06:14 rgb -> ../../devices/leds-qpnp-f6141c00/leds/rgb

~ #
[Sony Cross-Device General] iBuzman:
Hi Barry,

in case no one has reported back to you lately on the ZU, all 3 recoveries work via NDR Utils and both recoveries work via vol buttons. Brightness setting in Philz correct by default and timestamps for backups correct with all three recoveries [emoji106] (v132 btw)

(ignoring me "accidentally" auto updating busybox and breaking everything - having to fastboot a 4.4.4 ric kill kernel and recovery back then restoring nandroid lol)
[Sony Cross-Device General] [NUT]:
I have a saying I regularly speak out loud ... it goes like this:

Assumption is the mother of all f*ckups!

:eek:

It's the brightness control after all!!1!

[MENTION=4675598]shoey63[/MENTION] got it right the first time... I got it wrong with my latest attempts...

2.7.137 will be ready in 15-20 minutes.
[Sony Cross-Device General] [NUT]:
2.7.137 online for the TabZ2 only.

This one has the brightness path set correctly.

The brightness paths between the Z2 and TabZ2 are different in that the Z2 has one more: /sys/class/leds/wled:backlight

I had configured the TabZ2 build with the same path, which is obviously incorrect as it's missing all together.
[Sony Cross-Device General] taranfx:
I've Criskelo's stock recovery, no recovery now. I tried Dual recovery installation but it fails coz I can't write to /system. Tried via root explorer too, it gains SU but cannot write to system area. What should i do?
[Sony Cross-Device General] [NUT]:
Use the installer option 3, it should be able to install even if the RIC system protection is still active.
[Sony Cross-Device General] JohnKersten:
Just installed, PhilZ is there. Other recoveries also available.
[Sony Cross-Device General] DiLeon:
Still no Philz/CWM:

~ # ls -la /sys/class/leds/

ls -la /sys/class/leds/

__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!

drwxr-xr-x 2 root root 0 Mar 26 07:33 .

drwxr-xr-x 61 root root 0 Mar 26 07:33 ..

lrwxrwxrwx 1 root root 0 Mar 26 07:33 lcd-backlight -> ../../devices/mdp.0/qcom,mdss_fb_primary.169/leds/lcd-back

light

lrwxrwxrwx 1 root root 0 Mar 26 07:33 led:rgb_blue -> ../../devices/leds-qpnp-f6141c00/leds/led:rgb_blue

lrwxrwxrwx 1 root root 0 Mar 26 07:33 led:rgb_green -> ../../devices/leds-qpnp-f6141c00/leds/led:rgb_green

lrwxrwxrwx 1 root root 0 Mar 26 07:33 led:rgb_red -> ../../devices/leds-qpnp-f6141c00/leds/led:rgb_red

lrwxrwxrwx 1 root root 0 Mar 26 07:33 lp8556 -> ../../devices/f9967000.i2c/i2c-11/11-002c/leds/lp8556

lrwxrwxrwx 1 root root 0 Mar 26 07:33 mmc1:: -> ../../devices/msm_sdcc.1/leds/mmc1::

lrwxrwxrwx 1 root root 0 Mar 26 07:33 mmc2:: -> ../../devices/msm_sdcc.2/leds/mmc2::

lrwxrwxrwx 1 root root 0 Mar 26 07:33 rgb -> ../../devices/leds-qpnp-f6141c00/leds/rgb

~ #
[Sony Cross-Device General] [NUT]:
Actually... you might be right: I just found I probably never included the completed build with this change in it :silly:

I'll make damn sure 2.7.138 will have that included... Sorry about that :angel:
[Sony Cross-Device General] sigprof:
That commit is also partially wrong — it will break display brightness for Xperia ZR. At least on my C5503 variant of this model the sysfs file which controls the display brightness is /sys/class/leds/lm3533-lcd-bl/brightness; /sys/class/leds/lcd-backlight/brightness is also present, but writing to it does not seem to have any visible effect. Tested with stock ROM 10.5.A.0.230 (4.4.2).
[Sony Cross-Device General] [NUT]:
Thanks for catching that. :good: I did some quick testing myself too. It seems lcd-backlight will only work if there is nothing else to control the background... I reverted that change.
[Sony Cross-Device General] [NUT]:
[MENTION=4677694]DiLeon[/MENTION], TabZ2 2.7.138 now online, if that one fails to control the brightness I have no clue how to quick-fix it.

Then I'll gladly take you up on the offer to use your pc/remote desktop to check stuff out.
[Sony Cross-Device General] taranfx:
Sorry, still cant

p.s. I've set superuser to "Allow" in SuperSU.
[Sony Cross-Device General] [NUT]:
I cant remember which device you have?
[Sony Cross-Device General] DiLeon:
TWRP and Philz is working now. CWM brings up the Sony logo but now with maximum backlight. But all in all we're one step further :)

When CWM hangs, there's also no adb shell possible so as it was with Philz
[Sony Cross-Device General] taranfx:
C6902
[Sony Cross-Device General] [NUT]:
Use an ftf to reflash your current system partition ONLY (so do not wipe anything and exclude everything else except system). Then try again please.

When/If it fails again, please post ALL of the installer window output.

If that works, contact your current rom chef and explain what happened. It's a problem in his rom then.
[Sony Cross-Device General] [NUT]:
Phew :silly:

Ok, now to fix vanilla CWM.
[Sony Cross-Device General] NamenIos:
Finally some good news from me - there has to be some subconscious hate for me by now I imagine ;)

Just for PhilZ now:

Values for /sys/class/leds/lm3533-lcd-bl-(1/2)/brightness

After starting the values are: (-starting-value-for-PhilZ-/0)

After going into idle: (10/0) -- there is no visible difference to (46 starting value as brightness).

When turning the screen black and trying to switch the backlight off in sleep mode: (10/0)

When the backlight should be off /sys/class/leds/lm3533-lcd-bl-1/brightness gets only set to 10 and not 0. Manually echoing 0 into the other brightness value (lcd-bl-2) switches the backlight off - even though you do not change the exposed value in sysfs. When you turn the backlight (with echo "0" > ...-bl-2) and wake the recovery from idle you will get a below minimum brightness screen. Letting it go into idle (aka dim screen, not sleep with backlight off) then turns the backlight off now. After waking it sets to (-starting-value-for-PhilZ-/0) - in my case (82/0). Setting ...-bl-2 to 82 will result in a slightly brighter backlight than with 0 but it is way darker than right after start with the values (82/0).

So short:

starts with (82/0), screen is relatively bright.

idle to (10/0), sleep to same (10/0), but now the phone does not draw anything on the screen

setting the second value to 0 (even though according to cat it already is 0) turns off the backlight

I somehow even managed to crash the recovery with echos into the brightness files (only values from 0-250).

I am not 100% sure how the backlight control works. The backlight controller has set LM3533_HVA_MAP_EXP as control flag, I guess the IC will automatically control that and will expose a linear control to the sysfs. If there is a non linearity maybe the settings are exponentional. Will look it up in the data sheet if the brightness won't be linear. Right now I guess the values are either not exposed to sysfs or there is some magic behind it.

No post from me without bad news here though: No USB connection in TWRP for me.

More maybe later (this evening or tomorrow).
[Sony Cross-Device General] [NUT]:
[MENTION=3233991]NamenIos[/MENTION] seriously, I am happy you are diving in to it head first. Don't ever stop! :good:

I don't own the device, I have no chance to do the debugging myself... I am happy someone knowledgeable like you is doing it :highfive:

I noticed adb is broken in TWRP 2.7.1.0, while adb sideloading still works... I'm on it :)
[Sony Cross-Device General] CAL7:
Same for me (Z2T SGP511).
[Sony Cross-Device General] tdamocles:
This might be a stupid question but can this work with candy cat rom or just stock based sony roms? I've been trying to use the flashable zip and it will not install.
[Sony Cross-Device General] paulle:
cm11

Can I use XZ-Dual-Recovery with CM11 ?
[Sony Cross-Device General] kingvortex:
No. Stock based roms only. [NUT] has already addressed this here. A search would have quickly found that post. ?
[Sony Cross-Device General] NamenIos:
The exposed sysfs entries seem almost linear. Values ranging in 10% steps are 155 157 168 179 189 200 211 222 232 244 255 on stock. The minimal brightness I observed with autobrightness is 119. "echo "bvalue" > /sys/class/leds/lm3533-lcd-bl-1/brightness && echo "bvalue" > /sys/class/leds/lm3533-lcd-bl-2/brightness" seems to work fine for me in busybox shell.

Thanks for your nice words, I wasn't serious with the subconscious hate, was just noticing that I was so often the bearer of the bad news.
[Sony Cross-Device General] [NUT]:
To be honest, I need more bearers of bad news like you who tell me how to fix things if they are broken :good:

Ok, so, /sys/class/leds/lm3533-lcd-bl-1 and /sys/class/leds/lm3533-lcd-bl-2 need to be set to the same value to make it work ok?
[Sony Cross-Device General] NamenIos:
Yes, at least that is what stock does*. And for off they use 0 in both, 10 is still on (although extremely dim).

*for the sake of completion: well stock sometimes has bl-2 one higher, so they might have 202 levels and round
[Sony Cross-Device General] anthonythangaraj:
[MENTION=4904057][NUT][/MENTION]

Xperia ZR 4.4.2 - MD5 verification failed Error while restoring backup in philz recovery. Working fine if md5 check is disabled. Using 132 XZDR
[Sony Cross-Device General] [NUT]:
Unfortunately that's a known issue, according to [MENTION=4666971]Phil3759[/MENTION] which he decided not to fix.
[Sony Cross-Device General] anthonythangaraj:
Thanks for the info bro :good: . Anyway I can live without that md5 check :D
[Sony Cross-Device General] [NUT]:
It only applies to older backups though. Backups made with this version should restore fine WITH MD5 check :)
[Sony Cross-Device General] anthonythangaraj:
Now got the point bro :angel:
[Sony Cross-Device General] [NUT]:
ZL-lockeddualrecovery2.7.139-BETA now online for your review. I have ONLY attempted to fix PhilZ. Can you check if it can now succesfully turn off the screen?

Just to make sure you have the settings set for a good test:

Tap 'PhilZ Settings';

Tap 'GUI Preferences';

Tap 'Dim Screen Delay' until it hits '0 (Disabled)';

Tap 'Screen Off Delay' until it hits '1 mn'

Then return to the main screen and wait for a minute.

:fingers-crossed:
[Sony Cross-Device General] NamenIos:
Oh my sleep just finished something else. I am on it ... give me 15 min. I'll edit this post.

edit1: Oh wow I almost ****ed up hugely, I did forget to flash the new recovery and wanted to debug. It is late here and it shows …

edit2: There is still the Unable to create brightness sys file in the log after booting. Backlight still on. And adb shell won't work. I even flashed 131 back, usb works there. adb devices shows nothing. Sorry and good night. I'll look further into it tomorrow.
[Sony Cross-Device General] [NUT]:
sleep deprived stupidity isn't that strange to me :angel:

Waiting in anticipation :cool:

You might need to reinstall the adb composite driver for this version, some major changed have been implemented.

The brightness issue is fast becoming a headache ... I thought I had it cracked :(

Please tap on the Reset Recovery Settings in the PhilZ Settings menu and reboot to PhilZ, then try again.

If it still doesn't work then:

Can you strawl through /sys/class/leds/ and do an ls -la from there first and then inside any backlight related folder in it?
[Sony Cross-Device General] LazyT:
Is cpio broken in Philz?

I made a flashable zip to automatically restore the recovery after updating cm11 via CyanDelta. It takes the boot.img from cm11, replaces the included cwm with twrp or philz from DualRecovery and writes back the new boot.img on my z1c.

This works fine in twrp and cwm, but in philz it failed because the cpio command segfaults. Including busybox from cwm works fine on all recoveries...
[Sony Cross-Device General] [NUT]:
Not that I am aware of... but the busybox does vary among the recoveries as they have some specific need for how a certain applet responds or works. I have tried combining them in to one ramdisk but the busybox needs kinda foiled that idea.

Which package are you using as base?
[Sony Cross-Device General] LazyT:
The script extracts the "recovery.*.cpio.lzma" from your "Z1C-lockeddualrecovery2.7.132-BETA.installer.zip".

I can attach the script here if you want to try or check...
[Sony Cross-Device General] [NUT]:
I don't have a Z1 Compact to test with, so that won't help much ;)

Before we start debugging this, try 2.7.139 the next version which I will be uploading hopefully in a day or 2. If and when it still won't work then, we'll try to fix your problem :)
[Sony Cross-Device General] mnsk:
I flashed z1 lockeddualrecovery 132 over 121 now phone is stuck at Sony logo, no recovery nothing.

Any help?
[Sony Cross-Device General] [NUT]:
Turn off your phone with Power+VolUP holding them until you feel it shut down with 3 vibrations.

Then turn on your phone and enter TWRP by using vol down at the green led + dual vibrations.
[Sony Cross-Device General] mnsk:
That's the thing there was no led and vol down was not working, just sony logo.
[Sony Cross-Device General] [NUT]:
right after installation or every time you try to boot your phone? Turned it off yet with the button combination?
[Sony Cross-Device General] mnsk:
Every time I try to boot. And yes tried with the button combination then still after reboot phone stuck at sony logo, no led.

I tried it twice, same thing happens.

Both times I had to used flashtool to start again and restore backup.
[Sony Cross-Device General] [NUT]:
:eek:

Weird ... stuff... Can you try 2.7.139 which I am uploading right now?
[Sony Cross-Device General] [NUT]:
[MENTION=3233991]NamenIos[/MENTION] thanks for that :)

2.7.140 is now online, can you re-test it for me please? PhilZ only, of course.
[Sony Cross-Device General] deeps.singh46:
can develop for xperia m

i can be a tester:D
[Sony Cross-Device General] [NUT]:
Sorry mate, too busy at the moment, besides, xperia j and p are due first.
[Sony Cross-Device General] deeps.singh46:
but will you be developing for XM actually its most recent phone them dont get me wrong but XM didnt a single LB recovery yet but i want to develop mods ffor this device but no recovery....:fingers-crossed:
[Sony Cross-Device General] [NUT]:
Yes, eventually I will... But no promises or eta's.
[Sony Cross-Device General] deeps.singh46:
fingers crossed hope you will release it soon:fingers-crossed:
[Sony Cross-Device General] [NUT]:
XZDR 2.7.141 uploaded for all devices, including kernel versions of the latest ROM versions for all supported models.

changes:

Updated TWRP to inlcude a new time fix (make sure you set the correct timezone in recovery!)

Updated PhilZ to the latest version, also applied the same time fix (make sure you set the correct timezone in recovery!)

+ PhilZ is now able to do a basic search for the correct backlight path if a configuration error has been found at runtime

+ PhilZ is now capable of controlling backlight on devices with 2 brightness control devices (Xperia ZL), still needs some debugging.

Updated Vanilla CWM to 6.0.5.0

Updated the unrooted installation option, debugged it and updated to make sure it can install on 100% of the supported models

Removed the old time fix in favor of the new timefixes

Updated NDRUtils to the latest version

Introduced a new way to include all XZDR changes to the recovery init.

Changed USB idProduct to D001 but kept idVendor set to 0FCE, force installation of an ADB composite driver is required for now, will include driver package in a future version.

A long list of smaller changes I won't mention...

Let me know if anything is broken or not working as intended!
[Sony Cross-Device General] Bird40:
[NUT], thank you for your work.

but ...

TWRP backup time is not corrected.

PhilZ backup time must be installed manually every time.

ZL (C6503)
[Sony Cross-Device General] evaokay:
z1 4.4.4 108 Z1-lockeddualrecovery2.7.141-BETA cant load ito PhilZ again,anyone has the same problem?
[Sony Cross-Device General] iBuzman:
No Philz on 141 ZU either (was ok on 132) - backlight just seems to turn on and off repeatedly when trying to enter philz.
[Sony Cross-Device General] evaokay:
TWRP time zone setting when i set it to +8 beijing, faster an hour than usual
[Sony Cross-Device General] anagramgenius:
unchecked parse time daemon in philz and it showed correct time.
[Sony Cross-Device General] JohnKersten:
Z2-lockeddualrecovery2.7.141-BETA.flashable

Just flashed Z2-lockeddualrecovery2.7.141-BETA.flashable.

No problems found on time settings for PhilZ and TWRP.

Looks great.
[Sony Cross-Device General] [NUT]:
Clean and clobber, a new version with a clean Base is on it's way. Sometime this weekend.

Sorry folks...
[Sony Cross-Device General] coolkoushik07:
latest 141 version for z1c has bug.. It cant boot into philz touch recovery...
[Sony Cross-Device General] NamenIos:
Can you please make me a test/debug version for me with "LOGI("Will write new brightness value into brightness file in %s \n", libtouch_flags.brightness_sys_file);" inserted into gui_settings.c at line 500? I think we might have the wrong path there. Probably /sys/devices/platform/msm_fb.524288/leds/lcd-backlight/brightness is my suspection.
[Sony Cross-Device General] [NUT]:
Will do. If it's working fine, you should be able to see the correct path used in the philz configuration though. It's in /data/philz/, please check that as well.
[Sony Cross-Device General] NamenIos:
No, there is no path in the ini.

I tried putting one in before and that did not work (put it into both files /data/... and /sdcard/...). Not sure if I got the syntax right though, I used brightness_user_path=/sys....
[Sony Cross-Device General] [NUT]:
You have the syntax almost right, I believe PhilZ will only accept it with spaces before and after the = sign. Not 100% sure though.

Attached is the philz recovery file only, which you can push to /system/bin/ to start using that. It includes the change you requested.
[Sony Cross-Device General] [NUT]:
2.7.142 now online ...

One known bug: timefix won't work in PhilZ. Next round will hopefully fix that.
[Sony Cross-Device General] iBuzman:
No Philz still on ZU (backlight just blinks on and off - power button and vol up required). back on 132 (last version that all worked for me).
[Sony Cross-Device General] NamenIos:
Log: http://pastebin.com/8wWX5UAx

Weird:

find: /sys/class/leds/wled:backlight/: No such file or directory

I:No brightness file found: function disabled

find: /sys/class/leds/wled:backlight/: No such file or directory

I:No brightness file found: function disabled

Looking into it tomorrow evening. Then I will try to put the path into the config file manually again.
[Sony Cross-Device General] Acnahp:
Hi, dude

I can't enter Philz Touch Recovery (tried use volume up and NDR also), alter purple light it's only black (black screen) it happen after update supersu v2.01 via playstore and 'install supersu into system' on supersu setting

I used Z2-lockeddualrecovery2.7.142-BETA.installer

I can enter TWRP and CWM

My device D6503 build number 17.1.1.A.0.402
[Sony Cross-Device General] LittleSamson:
Have u changed the default recovery to TWRP?

Updated to .402 on my D6503 and reinstalled the recovery (2.7.141-BETA), then it booted to TWRP.

Edit: Maybe google saved and retored the settings in NDR Utils.
[Sony Cross-Device General] aryayush:
Hey. Thank you for creating this.

I have adb and fastboot installed on my Mac and just rooted my Sony Xperia Z1 Compact (running 4.4.2 / .757) using the Easy Root Tool. It went off without a hitch. However, when I am trying to run your script, it’s giving me this error:

I downloaded the file "Z1C-lockeddualrecovery2.7.142-BETA.installer.zip" from the URL you linked to. When I run “adb devices”, it says my device is attached. I navigated to the directory the script is in and then issued the command "chmod +x ./install.sh", which gave me no error or confirmation about whether it worked or not. Then I typed "./install.sh" and hit Return. That’s when it is throwing up the error.

Am I doing something wrong?
[Sony Cross-Device General] halifage:
Sorry in advance for the noob question.

Does this work already on CM based roms?

I'm trying to install it on carbon, z ultra, 4.4.4 unlocked bootloader.

Thanks