yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] NamenIos:
Oh wow. It gets weirder and weirder. Last night I only made a very quick test, updated to latest version, deleted everything for philz (directory in /data and /sdcard/clockworkmod), copied the new philz cpio file and set permissions ownership right and booted into philz with vol buttons. Today I wanted to test further. The brightness settings are working kind of. The value of bl2 right after start is 0, but it is on 255 internally, I assume it starts at full brightness but the sysfs entry is wrong until set for the first time so that is probably normal. When I set the brightness in the recovery it works. Using different settings write the values correctly into bl1. But when switching into sleep the value does not get set to 0. So the backlight won't turn off.

Summary PhilZ can set the backlight brightness on one path. But not to zero.

The log is also updated on the second try the brightness path was set/found. http://pastebin.com/byHtN4eB

Is it possible in C11 or whatever that is to have a FILE *file = fopen() and later in the same function FILE *file = fopen() again? I think in Ansi C that shouldn't be possible and the compiler won't compile or throws a warning. Maybe a new variable would fix that if it's a problem. But I could totally be wrong here. My C is rusty.

edit: Oh wow found something big. strcmp(libtouch_flags.brightness_sys_file, "/sys/class/leds/lm3533-lcd-bl-1/brightness") == 1 should be xxx == 0. strcmp returns 0 if the strings are equal, looked it even up to be sure. I am pretty excited so here is even a mention ;) [MENTION=4904057][NUT][/MENTION]

edit2: The dim screen function works for bl-1, even though 10 is nearly off.

edit3: The function used to switch off the display seems to be https://github.com/xNUTx/philz_touch_cwm6/blob/cm-11.0/minui/graphics.c void gr_fb_blank(bool blank) (on the bottom)
[Sony Cross-Device General] [NUT]:
Yes, as PhilZ is throwing a lot of fits lately, TWRP has proven to be more reliable. It's for first time installations, people who are new to modding. They would run in to a broken PhilZ, which is confusing the hell out of them.
[Sony Cross-Device General] msc3:
Hi! I can't connect with ADB with TWRP. I can't find drivers for XP for XZ2. Drivers from flashtool not working. Usb details: VID_0FCE&PID_6182
[Sony Cross-Device General] [NUT]:
Force adb composite driver on that device, it will work fine.
[Sony Cross-Device General] [NUT]:
As I already had something almost ready for use:

XZDR-adbdriver.zip (14.38MB)

It should allow you to install the new recovery adb connection without forcing anything.

How-To install:

Disconnect your device;

Unpack it and enter the usb_driver folder;

Right click on android_winusb.inf and choose to install it;

Reconnect your device.

It should now install an ADB Composite Device and you should be able to use it again.

Small warning: I'm fairly sure I did it right, but it is currently untested.
[Sony Cross-Device General] [NUT]:
2.7.143 incoming:

I have reverted to the latest 'stable' branch (with the help of [MENTION=4675598]shoey63[/MENTION]) and with that also undone my tinkering.

I want to know if PhilZ will start to work again on the devices currently crashing upon entering PhilZ.

Nothing else changed. Files will be online soon.
[Sony Cross-Device General] russel5:
Yes, PhilZ work. Thanks

Sony Z1 Compact
[Sony Cross-Device General] latinoguy:
Hi, does someone konw hot to uninstal CWM and install XZDualRecovery. I will apreciate any help. Thanks.:)
[Sony Cross-Device General] russel5:
Easy way is restore your firmware with flashtool

Uncheck all wipe and exclude all exсept system
[Sony Cross-Device General] JohnKersten:
Z2-lockeddualrecovery2.7.143-BETA.flashable.zip

Flashed this version.

Problems PhilZ recovery;

1. When I want to change 'Timezone' the message 'there is a .zip missing'

2. Making backup screen turns black, during backup, when I turn softkey on the bottom, backup stops and main menu appears

regards John
[Sony Cross-Device General] iBuzman:
143 all good on ZU (rooted, deodex). updated timezone info without issue. thanks again for this great support of so many devices [MENTION=4904057][NUT][/MENTION]
[Sony Cross-Device General] coolkoushik07:
143 working on z1c too.. Thanks..
[Sony Cross-Device General] DiLeon:
1.43 working fine on both, Z1c and Z2tab (521) ( TWRP, Philz and CWM). Good job!
[Sony Cross-Device General] [NUT]:
Thanks to all the people above this post reporting, it helps to get a direction where to look for issues if things break :) :good:

[MENTION=5127484]JohnKersten[/MENTION] the bugs you mentioned should be fixed in the next PhilZ 'stable' version, the fixes to these issues are probably what made PhilZ go mad on some devices.

To all:

Version 2.7.144 is comming soon, compiling PhilZ again as we speak, will also build TWRP again. CWM will be unchanged.

PhilZ: timefix re-enabled, but with a twist: instead of using time_daemon I auto-enable the RTC fix, which seems to be working on all devices I have. The device PhilZ configuration can have a different setting which I do not alter. If you want to test this 'fix' reset all PhilZ settings and reboot to recovery.

TWRP: Inspired by the same RTC fix in PhilZ I have altered the existing timefix (with the extensive help of [MENTION=5321428]AngelBob[/MENTION] and [MENTION=3418703]Tasssadar[/MENTION], thanks guys!) and debugged it until it ran fine on the Xperia Z. This should read /sys/class/rtc/rtc0/since_epoch and apply that timestamp to the system time.

If these versions of both PhilZ and TWRP are working fine, this version will replace 2.7.128 as the 'safe older alternative' and I will attempt to redo the backlight/brightness control modifications again in the future versions. 2.7.142 and 143 both had an updated unrooted install, which is a lot better then the one in 2.7.128 and 2.7.143 was a trial version just to see if reverting all changes would have any effect in PhilZ. It however does not have the old XZDR time fix 2.7.128 in fact still has.

It should be online in a short while, I will be removing 2.7.143 when it is.

Files now online!

Please test it and report your personal experience people, it is much appreciated! :cowboy:
[Sony Cross-Device General] iBuzman:
Thx, all good so far (3 recoveries, timezone etc) [emoji106]
[Sony Cross-Device General] JohnKersten:
Z2-lockeddualrecovery2.7.144-BETA.flashable

On Z2 the only thing not working, as far I can see:

Timezone settings, no error but not correct time and date in PhilZ and TWRP

Backing up iin PhilZ looks OK now.

Thanks your on the right way.
[Sony Cross-Device General] coolkoushik07:
In 143 after setting time zone, time was showing wrong in philz but it was showing correct in twrp..

But in 144 philz is working perfect and twrp is showing wrong..
[Sony Cross-Device General] punkt:
Same here :D
[Sony Cross-Device General] Sargos76:
every time i have done my backups i´ve seen that the date wasn´t correct but no big deal just rename it and all ok,so for now this does not happens on XZ with phill recovery?
[Sony Cross-Device General] DiLeon:
Same her for Z1c and Z2tab. Re-flashed 1.43 on both devices.
[Sony Cross-Device General] coolkoushik07:
I have made backup using philz and the date is correct...

Dont forget to reset philz setting, reboot to recovery and then set time and date.. Now time and date will show correct always..
[Sony Cross-Device General] russel5:
Yes, in PhilZ time show correct, but now in TWRP show wrong time
[Sony Cross-Device General] Sargos76:
No sir, impossible to correct time em date on Phillz on 1.25 not doable

Sony Xperia Z / C6603 LTE / Root/LB via Tapatalk
[Sony Cross-Device General] :
The 143 and 144 installers have a bad time trying to root my C6903 on 4.4.4, they simply can't. The 128 easily does the trick but the new ones won't. And after trying to root with the 143 and 144, the 128 shows another errors, so I have to reflash an .ftf. I've attached a "log", I copy-pasted all the text from the installer into a .txt. Hope it helps.
[Sony Cross-Device General] coolkoushik07:
Use the latest one
[Sony Cross-Device General] Sargos76:
To soon, im using now the 1.28,but thanks anyway

Sony Xperia Z / C6603 LTE / Root/LB via Tapatalk
[Sony Cross-Device General] coolkoushik07:
If u r not using the latest one then dont report bugs by saying its imposible to do so or bla bla...
[Sony Cross-Device General] [NUT]:
Thanks ... it's a typo in my updated unrooted install... :o

Next version should arrive soon, it should fix that.
[Sony Cross-Device General] [NUT]:
2.7.145 building right now.

re-Applied the time fix, some models do have since_epoch but they don't use it :eek: for those models PhilZ and TWRP will now use the ats files to correct the time...

Fixed the typo in the install.bat for windows. Also applied a new bit of [MENTION=5261329]DevShaft[/MENTION]'s choice executable code. It should make it work more reliable on Windows 8 and up.

Files will be online soon and will be replacing 2.7.144.
[Sony Cross-Device General] apple-part:
tested .145 flashable and everything works as it should. big thx to [NUT] ! [emoji4]
[Sony Cross-Device General] anagramgenius:
philz shows correct time but in twrp the time is slow by 10mins in my ZL. Nvm thanks for update:D
[Sony Cross-Device General] coolkoushik07:
Philz shows perfect time but twrp shows wrong time..

Sent from my Xperia Z1 Compact (D5503)
[Sony Cross-Device General] iBuzman:
[MENTION=4904057][NUT][/MENTION] 145 all good on my ZU ~ I didn't need to change anything as the settings from the last version have remained including timezones, brightness, and other settings. Thx again.
[Sony Cross-Device General] SREEPRAJAY:
Members,

Please be considerate. You were newbies or beginners once and then, you had expected some compassion from others too.

For beginners, please use search and PMs if you need any support.

Thanks

THREAD CLEANED
[Sony Cross-Device General] tom282f3:
Hello. Sorry I am new here and I am not sure if I can post my newbie question here.

Do I revert back to the stock recovery through "How to remove?"

Can I update through OTA if I did what I mentioned above?

That's really important to me due to my computer. I am not sure if my computer can hold the whole process of flashing.

If I cannot post here please notify me.

Any answer is much appreciated.
[Sony Cross-Device General] coolkoushik07:
There is no stock recovery in xperia devices.. U can proceed to ota update while having dual recovery.. Some people reported ota kept root and recovery..

Sent from my Xperia Z1 Compact (D5503)
[Sony Cross-Device General] [NUT]:
2.7.146 now online, I forgot to update philz on some devices, which left in debugging messages ... :o

Nothing else changed :angel:
[Sony Cross-Device General] JohnKersten:
Z2-lockeddualrecovery2.7.146-BETA.flashable

Hello,

Time in PhilZ is one hour earlier than real time, it is correct when I use 'Daily Light Saving Time'..

In TWRP time is OK.:good:
[Sony Cross-Device General] coolkoushik07:
Thanks boths now showing correct time.. Thanks for ur all hard work..

Sent from my Xperia Z1 Compact (D5503)
[Sony Cross-Device General] DiLeon:
Great work, NUT. 1.46 fully working for Z1c and Z2Tab.
[Sony Cross-Device General] Albert Poon:
[MENTION=4904057][NUT][/MENTION]

I heard that time issue is fixed for some people in 146 but then for my JB4.3 SGP311, the tzdata problem is still here and date returns 1971 blah blah blah still. Time zone is also incorrect - I have to choose GMT0:15 in order to display TAIST-8 correctly.

Please take a look if you have time for it, thanks!
[Sony Cross-Device General] [NUT]:
If you can do a small test for me, I have a Tablet Z (SGP321) but I have kitkat installed on it, if you could do the testing I can save me the trouble of installing JB again...

Connect to the device while in recovery (doesn't really matter which one), with adb shell and type the following:

mount system
mount data
ls -la /data/time/
cat /sys/class/rtc/rtc0/since_epoch

And paste the output of the 2 last commands here.

Next boot to PhilZ and there you have to go to PhilZ Settings -> GUI Preferences -> Time Setup;

Now set the correct timezone for you and return to the above menu;

Tap 'Change Date and Time';

Now test both 'Parse Time Daemon Data' and 'Use RTC Time Offset', you can not have them both enabled at the same time, so alternate and reboot to recovery to see if it helps. Which one makes the time and date to restore OK for you?
[Sony Cross-Device General] Albert Poon:
Thank you for the reply.

First of all, while in Recovery mode, I cannot adb shell to it and it says error: device not found

I already installed the drivers from flashtool and can do flashing in flashmode. Did I miss something?
[Sony Cross-Device General] [NUT]:
Yes, you probably did :)

http://nut.xperia-files.com/?dlid=WFpEUi1hZGJkcml2ZXIuemlw

Install it using this driver package, it should work OK.
[Sony Cross-Device General] Albert Poon:
Ahhh... Okay... Here we go:

ls -la /data/time

drwx------ 2 system system 4096 Jan 2 2009 .

drwxrwx--x 46 system system 4096 Jan 6 06:23 ..

-rw------- 1 system net_raw 8 Jul 10 2014 ats_1

-rw------- 1 system net_raw 8 Jul 10 2014 ats_2

cat /sys/class/rtc/rtc0/since_epoch

31991208

For the second test, use RTC time offset works in Philz even after rebooted back to Philz, but still wrong in TWRP
[Sony Cross-Device General] [NUT]:
Thanks for this :)

One last request, can you boot to both recoveries and right after booting to it 'adb pull /tmp/recovery.log' and attach the logs here.

I have a hunch what's wrong, this should clarify that for sure.
[Sony Cross-Device General] anagramgenius:
thanks. both twrp and philz are showing correct time in my ZL
[Sony Cross-Device General] SGT John Doe:
When using TWRP and flashing files, what does "Zip file signature verification" means?
[Sony Cross-Device General] [NUT]:
If the creator of the zip signed the zipfile twrp can verify it's signature. Most people don't bother though...
[Sony Cross-Device General] shoey63:
Eg: [MENTION=631273]Chainfire[/MENTION] 's zips are properly signed, most others will fail the signature verification.
[Sony Cross-Device General] zaxharu:
thanks [MENTION=410007]Nut[/MENTION] , latest version is now working fine with Windows 8.

by the way, Im just wondering, why it still BETA? 146 is working great right now. what are the bugs?

Best Regards!
[Sony Cross-Device General] [NUT]:
Well, 3 bugs remain:

For the xperia zl and z both, philz does not shut down the backlight while it does that without issues on other devices.

The xperia T still reboots spontaneously while in recovery and the time fix doesn't work on it.

The tablet z with JB 4.3 also still has the time issue.
[Sony Cross-Device General] anagramgenius:
you mean the screen should completely turn off? like it does when we lock the phone?
[Sony Cross-Device General] JohnKersten:
Z2-lockeddualrecovery2.7.146-BETA.flashable

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

I forgot to tell you, that time in PhilZ iand TWRP are working with DST,

Backup with PhilZ is working, screen goes black all the way and is activated with power button, without breaking the backup.

Regards John
[Sony Cross-Device General] zaxharu:
i see,the bug is only for other devices but for xperia z ultra, theres no bug.
[Sony Cross-Device General] [NUT]:
That is how it's supposed to work, yes. It only creates a black screen at the moment, but doesn't control the backlight.

That's perfect, thanks :)

Yes, not all devices have the same issues.
[Sony Cross-Device General] Scr@tchy:
pac-rom and Nut´s wont work

hi,

I have pac-rom installed on my z1. It is a nightly build from 5 July 2014. I have tried all versions of nuts fell from 121 bis 146. Philz runs in any version, unfortunately. The screen remains black and in the beginning you can see the it may concern. When I tap on the display, then it vibrates. Is there a solution?

Thanks
[Sony Cross-Device General] norti:
[MENTION=4904057][NUT][/MENTION]

Please consider updating towelroot tr.apk in the recovery installer zips, because the old one always gets removed by ESET Antivirus and the latest version is fine with them ;)
[Sony Cross-Device General] anagramgenius:
Everyone wont use ESET Antivirus. Better to turn off anti virus while installing because every Antivirus deletes towelroot
[Sony Cross-Device General] norti:
That's not my whole point, the tr.apk is still outdated in the installer zips.
[Sony Cross-Device General] [NUT]:
[MENTION=3975929]zxz0O0[/MENTION] has been working on an alternative method, which I have been testing for him, I'll switch to that in the next version probably.
[Sony Cross-Device General] lovedonator:
I have an Xperia Z C6602 running on Stock Firmware Version 10.4.B.0.101. It's rooted with Supersu. When trying to install the XZdual recovery(latest 2.7.146 Beta) the installer completes all the steps and shows installation successful but the phone does not restart and when I restart it manually the led doesn't light up and it boots normally and so I can't access the recovery.

Any help would be appreciated.

EDIT Tried the previous release(2.7.128 Beta) and it worked like a charm. Cheers! :)
[Sony Cross-Device General] Albert Poon:
[MENTION=4904057][NUT][/MENTION]

I was away from town and now returned. Any more testing I can do for you?
[Sony Cross-Device General] HyperClocker:
Hi and sorry for sounding like a noob, but does dual recovery mean we can dual boot using them i.e. One recovery for each rom?

Thanks
[Sony Cross-Device General] coolkoushik07:
No

Sent from my Xperia Z1 Compact (D5503)
[Sony Cross-Device General] [NUT]:
Nope, but you should correct the timezone to your own. From the logs I can see they set the time correctly...
[Sony Cross-Device General] Albert Poon:
It is correct in PhilZ only, but wrong in TWRP
[Sony Cross-Device General] [NUT]:
The odd thing is that they both use the same method.... Twrp should set the right time as well :confused:
[Sony Cross-Device General] Albert Poon:
Turns out it doesn't. I can see in the TWRP recovery log it looks like it is also using rtc method to fix the time but it doesn't show the date/time before and after, not sure if it successfully executed?

[UPDATE]

Even if I select the wrong time zone to make the time looks correct, I tried to do a backup and the directory is still 1971-blah-blah-blah.
[Sony Cross-Device General] engineer_dhaval:
Thanks for your work..

Can you add Xperia M Dual [C2004/C2005] running JB4.3 in your list..
[Sony Cross-Device General] The Transporter:
Hi all,

I'm pretty new to the Sony mobile world with a Z1 Compact, I'm coming from the Nexus 5 Galaxy.

Do you think I can flash the recovery ? I'm using stock rom with android 4.4.4 (.108).

Thanks
[Sony Cross-Device General] coolkoushik07:
Yes, use the installer and select install on unrooted rom and follow the instructions on screen..

Sent from my Xperia Z1 Compact (D5503)
[Sony Cross-Device General] The Transporter:
Thanks it works !

Now heading the search button to find a better kernel to save battery ;)
[Sony Cross-Device General] iBuzman:
^^ only stock kernel is available for 108.. (stock or stock with ric_kill)
[Sony Cross-Device General] walkinhotdog:
Help please. It cant find my device even though I have sony pc companion installed and my computer detects my z1 compact. I can view all the storage files through my computer too. I start the install bat and press 1 cause I have supersu root, but just hangs there even though I have my phone plugged in
[Sony Cross-Device General] guhvanoh:
Probably because you have another instance of adb running. But then are you sure all the drivers needed are installed? Grab a hold of usbdeview and see whether it does something amiss
[Sony Cross-Device General] sandy.parulekar:
Hello nut,

I have to remove dual recovery from my z2.

I did all following steps as u mentioned

(Delete the following files:

/system/bin/recovery.twrp.cpio.lzma (or .tar)

/system/bin/recovery.cwm.cpio.lzma (or .tar)

/system/bin/recovery.philz.cpio.lzma

/system/bin/charger

/system/bin/ric

/system/bin/chargemon

/system/bin/dualrecovery.sh

Then inside */system/bin/ rename chargemon.stock to chargemon check its permissions (should be 755 or otherwise visible as -rwxr-x-r-x). Done!)

But I am unable to delete this files. When I try to delete this files I got error (unable to delete)

Plus. Help.
[Sony Cross-Device General] [NUT]:
If you can still boot to recovery, flash this: http://nut.xperia-files.com/?dlid=WFpEUi1yZW1vdmFsdG9vbC56aXA=

It will remove all traces of XZDR.
[Sony Cross-Device General] Albert Poon:
[MENTION=4904057][NUT][/MENTION]

Even if I select another time zone to make the time looks correct, I tried to do a backup and the directory is still 1971-blah-blah-blah. Any more tests I can do to pin point the problem?
[Sony Cross-Device General] sandy.parulekar:
No I can't boot to recovery, when I am using Ndr utility,

It shows error (unable to read XZDR.prop. Nut's XZdualrecovery is required for this feature.)

& when I try to use reboot to recovery feature, my mobile restart normally.
[Sony Cross-Device General] [NUT]:
Whoops... try this:

su
rm -f /system/bin/busybox
ln -s /system/xbin/busybox /system/bin/busybox

Maybe the toolbox does not know '-sf' for the creation of symlinks... dunno 4 sure...
[Sony Cross-Device General] demon2112:
Still nothing, and again to clerafy i only putt busybox file in XBIN
[Sony Cross-Device General] [NUT]:
Okay, then your only solution would be to reinstall XZDualRecovery using the installer. Sorry m8.
[Sony Cross-Device General] demon2112:
No worries man,i appriciate all the help, doesnt hapoen that much that devs activeley helpd on every post. A huge thanx to you man!!!

---------- Post added at 03:01 PM ---------- Previous post was at 03:00 PM ----------

Maybe warn people about the busybox in your OP
[Sony Cross-Device General] [NUT]:
Yah... but I notice most people never really read it all anyway, so where do i put it? :p
[Sony Cross-Device General] demon2112:
People should read,dont reading is like asking for trouble if you ask me:rolleyes:
[Sony Cross-Device General] [NUT]:
Quoted for truth :good:

I've put the busybox issue in the Known Issues section anyway... hope people will notice it :p
[Sony Cross-Device General] demon2112:
Nice!! I saw that someone else has the same issue in the q and a so i guess its spreading hahahaha

---------- Post added at 04:30 PM ---------- Previous post was at 03:46 PM ----------

Omg omg omg me dumbass no1, didnt reboot after all steps,did a reboot just now ang BAMM twrp recovery!!!!!!!!

Its working with your help thanxx again
[Sony Cross-Device General] riz157:
Don't flame me peeps. I've looked pretty much everywhere but can't find instructions on how to root my C6503 (ZL from German) i'm currently on 1011.A.1.253 FW. Unlocked bootlaoder

asked the question at ZL forum but no support whatsoever. I've always been HTC and Samsung user just thought I would give xperia a shot too.

Amu help would be appreciated
[Sony Cross-Device General] [NUT]:
There is no way to root 253 directly, you need to flash 434 _system_ and root that, then you can move on to the next step. :)

But as you are on an unlocked bootloader you can flash DooMKernel v7 and then just flash my ROM mutator from TWRP. Look at my files page (link in signature) at the bottom.

It's an AROMA installer, keep retrying if.it fails to start. AROMA is a bit buggy at the moment.
[Sony Cross-Device General] AndroPlus:
Can you add support for SO-02E, which is Japanese version of Xperia Z?

I can't select recovery with key before modifying dualrecovery.sh.

[EDIT]

attached build.prop
[Sony Cross-Device General] [NUT]:
This guide post has been superseded by this post, please go there!

Handy tips:

Without editing the dualrecovery.sh you can put a file called 'boot' inside either /cache/recovery or /storage/sdcard1/XZDualRecovery to make it boot to recovery.

The default recovery is CWM but if you wish to go in to TWRP, create a file called 'default' and put in the single word 'twrp' (without quotes!). Now whenever you reboot to recovery you end up going in to TWRP.

You can use the reboot wrapper by DooMLoRD to make a ROM manager's 'reboot to recovery' take you to recovery without you having to create a file called 'boot'.