yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] prairie-dad:
Clarification and (very minor) nitpick?

Got my N5 maybe three weeks ago and immediately followed Chromium's thread to root, install CWM and then flash Philz. Happily flashed away at ROMs for a few days, now have settled on Slim weeklies (like so many others!)

This will be my first occasion to update Philz. It sounds a bit dumb even to ask, but does one flash a new Philz from the old Philz? I dare say that to do so would be no great risk, but _if_ this is the case, maybe [MENTION=2872010]rootSU[/MENTION] or even Phil himself could update the Install Instructions to say Install/Update instructions, and note that you need use CWM or TWRP only the first time, and then move on to Philz? Or even ask [MENTION=4883664]Chromium[/MENTION] to update his "how-to" thread to add Philz to the list of custom recoveries one can start with, from scratch?

Also, since I use SlimKat...all that the Slim web site gives for new ROMs is their sha1...while Philz happily calculates only the md5 before asking me to confirm my flash! Could Philz not calculate sha1 as well as md5? Not a big deal, but it'd be handy, no?

thanks to all,

p-d
[Nexus 5 Android Development] danarama:
Post 1 says it's CWM / twrp flash able. Philz IS cwm but I'll reword it to "custom recovery flashable "

Edit > I've moved link to the main thread to the end of post 1, after my installation info.
[Nexus 5 Android Development] Phil3759:
Please see main thread an revert or update to 6.30.1 which is a partial revert

Sorry
[Nexus 5 Android Development] danarama:
I'll build and test tonight. Thanks for the warning.
[Nexus 5 Android Development] danarama:
Can everyone who updated to 6.29.2 please update to 6.30.1 immediately?

It's not "fatal" but the integrity of any backup done in the previous version is in question.It would be best to update now and backup
[Nexus 5 Android Development] quezpr123:
I'm looking for the download on goo but I'm not seeing anything. Is there somewhere else that I should be looking?
[Nexus 5 Android Development] danarama:
The download links are in post 1
[Nexus 5 Android Development] quezpr123:
You'd think after 6 years on xda I would have learned to read the first posts more thoroughly. Thanks lol
[Nexus 5 Android Development] danarama:
Haha.
[Nexus 5 Android Development] aoaleman:
Thank you root. Really appreciate you and your work!
[Nexus 5 Android Development] danarama:
Thank you. However, I merely compile the source code and maintain the thread. All the cool stuff is done by [MENTION=4666971]Phil3759[/MENTION]
[Nexus 5 Android Development] aoaleman:
Indeed. The time you put in to compile for us is greatly appreciated.
[Nexus 5 Android Development] BabboDemonio:
[MENTION=2872010]rootSU[/MENTION] Could you tell me how you compile the recovery from source code? I really appreciate yor efforts to mantain this thread but I would like to know how to do it if it's not a problem for you..Thanks!
[Nexus 5 Android Development] danarama:
Can you compile CWM?

I'm not really a teacher. Please don't post other Philz builds for Nexus 5
[Nexus 5 Android Development] BabboDemonio:
Nope I can't do it but I didn't mean to post them, it was just curiosity
[Nexus 5 Android Development] danarama:
Learn to compile CWM first.
[Nexus 5 Android Development] janres155:
Hi RootSU

Just want to ask if there is F2FS support for /data with this recovery?

Janres
[Nexus 5 Android Development] danarama:
That's one for [MENTION=4666971]Phil3759[/MENTION] really. I'm not aware of f2fs plans
[Nexus 5 Android Development] shhbz:
What the reason for my otg not mounting in recovery whereas it works normally with stick mount attached log for reference
[Nexus 5 Android Development] danarama:
What format is it?

What kernel so you use in Android?
[Nexus 5 Android Development] shhbz:
its fat32and tried with elemental,mahdi stock and even miui stock kernel none works but stick mount mount the otg fine while phone is on and i can see the file and stuff but in recovery it does not load tried with twrp too the usb led glows but no progress from there
[Nexus 5 Android Development] danarama:
Have you tried reformatting it? What USB stick is it?
[Nexus 5 Android Development] fatspirit:
Who should update that folder? Flashify relies on it.
[Nexus 5 Android Development] danarama:
Every month I give files to phil to upload.

Get your recovery from this thread, not flashify
[Nexus 5 Android Development] shhbz:
yes formatted it many times tried with san disk,transcend 8gb,hp 16gb same result always in recovery
[Nexus 5 Android Development] danarama:
So multiple recovery, multiple sticks... Always fails?

In which case it's either:

1) slight problem in OTG cable that recovery can't read

2) slight problem with formatting method
[Nexus 5 Android Development] shhbz:
well i bought another otg and same issue though all app like nexus media importer and stick mount works great without any issues but as soon as i enter recovery to perform any task using otg its seem a dead end from there
[Nexus 5 Android Development] danarama:
How are you formatting? Windows? Tried another computer?

Are you on latest version of recovery?
[Nexus 5 Android Development] shhbz:
normal format in windows7 using my pc and laptop right click and format,the strange stuff is the otg works in on mode of phone but the recovery does not sees it anyhow and yes now on latest philz
[Nexus 5 Android Development] danarama:
The stranger thing is it also doesn't work in twrp . It's not specifically a philz issue.

What if you go into Android and delete /storage/usbdisk ?
[Nexus 5 Android Development] GizmoTheGreen:
Does this recovery support F2FS?

Could I say, backup with this recovery, then reformat data to F2FS and then restore the backup, moving to F2FS without "wiping"?
[Nexus 5 Android Development] shhbz:
in recovery while mounting it says usbdisk is not shared -state=2 and while i delete the usb disk it comes up with an error it cannot delete but it deletes the file fine
[Nexus 5 Android Development] danarama:
It doesn't format to f2fs. I'm not sure if it can backup f2fs or not. Need [MENTION=4666971]Phil3759[/MENTION] to clarify that
[Nexus 5 Android Development] danarama:
This

Was after this

?
[Nexus 5 Android Development] shhbz:
what i meant was that when i keep the otg connected to phone and boot into recovery and mount the usb it gives that error while the delete stuff i tried while my phone was on and the otg was mounted with stick mount

maybe @Phil3759 is aware of the issue as I see another guy reported the same prob of usb disk is not shared - state=2 error in s3 thread while trying to mount usb otg
[Nexus 5 Android Development] danarama:
Wait? What?

Please describe exactly the steps you take
[Nexus 5 Android Development] aow1980:
[MENTION=2872010]rootSU[/MENTION] had to use the restore backup for the first time in a long time yesterday and noticed something odd.

During the restore it would reboot recovery before finishing (At least showing it finished) the restore. After a couple tries I decided to try and boot the phone to see if it did work. The phone was restored correctly. Not sure what was causing the reboot during but it did restore after all.

No log for it Sorry. Just thought I'd let you know in case it happens to any one else.
[Nexus 5 Android Development] danarama:
Ok thanks. If it happens again, please get /cache/recovery logs
[Nexus 5 Android Development] danarama:
Sneaky edit there. Im really not sure what you're doing. I never asked to delete files. I did ask you to boot into android and delete /storage/usbdisk - this can't be done when mounted.
[Nexus 5 Android Development] shhbz:
1.connect the otg to the phone attached with the pendrive formatted in fat32

2.reboot into recovery

3.mount/storage/usb disk or mount USB storage '

4.E:volume /storage/usb disk is not shared-state2 {this error comes up}
[Nexus 5 Android Development] danarama:
Mount USB storage is nothing to do with OTG.

You shouldn't have to do 3 either. It mounts automatically. Does recovery say anything before you do step 3?

What if you connect other AFTER you boot into recovery?

Can you please try and delete /storage/usbdisk without mounting Otg in Android?
[Nexus 5 Android Development] shhbz:
well that where the prob lies it should detect automatically but it does not in my case so i try step 3 mount/usb disk but fail to mount usb comes up. tried on both ways connecting before and after but same stuff.

and i dont get the option of deleting usbdisk, just emulated and sdcard0 inside storage where sd card 0 is the internal space
[Nexus 5 Android Development] danarama:
Ok I find that strange cause I always have that but maybe my rom puts it there because if I delete it and reboot, it comes back.

What if you create it manually?
[Nexus 5 Android Development] shhbz:
thanks for the spontaneous supprt maybe i will try with mahdi as miui rom does not provide me usb disk option and then revert back
[Nexus 5 Android Development] danarama:
It shouldn't really matter as the recovery uses its own kernel. Only thing I'm wondering is if something is up Witt your /storage mount but I'm at a loss, really
[Nexus 5 Android Development] shhbz:
Here it is nothing here that's what screw me up too
[Nexus 5 Android Development] eak1080:
Philz touch 6.41.5 with Open source touch lib 1.21

char
[Nexus 5 Android Development] danarama:
No thanks. I was waiting to compile for a reason. I'd rather people didn't post their own builds. My builds are built to specification officially for Phil. This version is not fit for use as it has glitches.

Please remove the link
[Nexus 5 Android Development] bariz143:
I get apply su root sometimes when flashing different roms that has root already. why?
[Nexus 5 Android Development] danarama:
It should detect root correctly if /system/xbin/su exists OR is symlinked to /system/bin/su

Please detail your su setup
[Nexus 5 Android Development] bariz143:
Happens occasionally. First I saw it on Mahdi ROM and then on Experience ROM. Flashed back to Mahdi I didn't get it. Don't know why it happens
[Nexus 5 Android Development] danarama:
Please answer previous question. I don't want to download Mahdi myself to get the answers
[Nexus 5 Android Development] bariz143:
Haha sorry. What do you mean with support setup?
[Nexus 5 Android Development] danarama:
Oh bloody hell. Su setup. Keyboard corrected it. Sincere apologies.

I need to know where Su is in the Rom. Is it in xbin / bin, both, none?
[Nexus 5 Android Development] bariz143:
It's in xbin
[Nexus 5 Android Development] danarama:
Nothing in bin at all?
[Nexus 5 Android Development] bariz143:
Just searched for it root Explorer and found one su file and it was in xbin
[Nexus 5 Android Development] danarama:
Ok please clean your /cache/recovery logs and when you next flash and it happens, please upload them
[Nexus 5 Android Development] danarama:
I really don't know whats up here. If you're certain you have ruled out:

OTG cable

USB Stick

Format error by Windows

And we know it happens in all recovery, the only issue left is your phone. Try formatting stick via easeus first. If that still fails, then maybe all I can suggest is flash factory images (back to stock) then flash recovery fresh and test immediately that way (do a nandroid first).
[Nexus 5 Android Development] danarama:
Updated with last 2 versions!
[Nexus 5 Android Development] shhbz:
Just flashed fresh mahdi rom and usb disk showing fine but no progress on the otg now last option is to go stock but will do it with the latest release 4.4.3 till then just njoy the blazing fast mahdi rom
[Nexus 5 Android Development] bariz143:
Right before I flash something on latest philz recovery I get a message about update to latest binaries. Any idea's?
[Nexus 5 Android Development] danarama:
Yes. The zip has outdated binaries. A feature of Philz is pointing that out before it has to load the legacy environment needed to flash ancient sh*t
[Nexus 5 Android Development] bariz143:
Hahaha okey?!?! :)
[Nexus 5 Android Development] jphilippon:
So... How do we fix this?

sent from my Nexus 5
[Nexus 5 Android Development] danarama:
Ask your dev to use up-to-date binaries in their flashable zips
[Nexus 5 Android Development] jphilippon:
I figured you're OP, so...

sent from my Nexus 5
[Nexus 5 Android Development] danarama:
So... ?
[Nexus 5 Android Development] jphilippon:
... So can you include the latest binaries in the flashable zips?

sent from my Nexus 5
[Nexus 5 Android Development] danarama:
Perhaps you misunderstand the issue at hand. How can I update the binary in every Rom, kernel, theme or mod zip?

If something you flash has an old binary, ask the devil of that thing to update it.
[Nexus 5 Android Development] jphilippon:
I've only seen that prompt on this recovery, so you are right I misunderstood the issue and I apologize.

sent from my Nexus 5
[Nexus 5 Android Development] danarama:
No problem.

The issue is the recovery must load a legacy environment to use old update-binary. Otehr recoveries don't report this and just keep on doing it without telling anyone. This recovery does it, but tells you - in teh hope that devs will eventually use updated binary
[Nexus 5 Android Development] charesa39:
This just happened to me last night as well. Made a nandroid a couple nights ago. Went to restore it last night, and it was going fine. Then, during /data restore, the phone restarted itself into recovery. Like you, everything seems to have restored properly though. I forget what version I was running (6.26.6?). After this happened, I updated to the latest version (6.30.1) thinking maybe it had to do with that specific version. Tried restore again, and same thing happened.

[MENTION=2872010]rootSU[/MENTION], I can send you recovery logs if you would like. Although, I'm not sure if you need them right after, as this happened last night. I suppose I can restore the nandroid again and zip the recovery logs right after. Just let me know what works for you. Thanks.
[Nexus 5 Android Development] danarama:
Yeah please upload...
[Nexus 5 Android Development] charesa39:
No problem. Here you go. I hope this is what you need. This is my first time posting any sort of log.
[Nexus 5 Android Development] Phil3759:
It is caused by an exception error on restoring selinux context

The code is now fixed in latest version + we rely on native selinux backup into tar archive

[MENTION=2872010]rootSU[/MENTION]

You should update to 6.41.8

https://github.com/PhilZ-cwm6/philz_touch_cwm6/commit/d58456caa512bd7ed219a2f96c5dc417016b84a6

Ignore further commits as they are not relevant for your device (f2fs related stuff and work in progress any way)

After 6.41.8, you must redo your backups as it will not be able to restore external SE context files from previous versions

Chances are though that for Hammerhead it is not an issue at all
[Nexus 5 Android Development] danarama:
OK thanks. I'll do it tomorrow hopefully.
[Nexus 5 Android Development] shotta35:
Holy crap, options overload!

Great work though, i don't really want to need my recovery this much but i'm sure plenty of people would love these options!

:thumbs:
[Nexus 5 Android Development] danarama:
Probably not ideal for all scenarios but usb stick works very well

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Android Development] Tuga2010:
I came from Samsung Galaxy S3 and i'm glad to see philz recovery also here :)

Enviado do meu Nexus 5 através de Tapatalk
[Nexus 5 Android Development] danarama:
Yeah me too. I9300. When I moved to s3 I missed 4 ext recovery from htc desire but philz replaced that easily

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Android Development] edwardtobia:
I also have the time bug in recovery, its 3 hours behind even though the time zone and DST are correct, any idea how to fix?
[Nexus 5 Android Development] lukemo:
+1 thanks
[Nexus 5 Android Development] danarama:
Everyone has it. It's due to the latest Qualcomm SoC and affects all recoveries on all devices with it. Once a fix is discovered, it can be fixed for everyone on multiple devices.
[Nexus 5 Android Development] Striatum_bdr:
Your legendary patience...
[Nexus 5 Android Development] danarama:
Hi [MENTION=4666971]Phil3759[/MENTION] - I'm having some trouble with the create custom rom from zip function.

It's not a function I need to use, I was just testing it. The issue exists on both from backup or from current ROM. The creation goes fine however, the zip flash fails.

The error from the row 1946 of the log /cache/recovery/last_log (which I cleared out before testing to keep a clean log) is below:

Error while extracting /system
result is [Error while extracting /system

Please see attached full log.
[Nexus 5 Android Development] Phil3759:
I will look at it

Thank you
[Nexus 5 Android Development] danarama:
Thanks. Don't rush. Have a good weekend :)

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Android Development] syncopy:
Off-topic alert!

[MENTION=2872010]rootSU[/MENTION], I remember you from the HTC Desire days. You had one of those bare, really bare minimum ROMs. Was a huge fan! Used to use it with the custom hboot with, was it 75 MB System partition?! I believe so. Great stuff! :)

Cheers!

Sent from my Nexus 5
[Nexus 5 Android Development] danarama:
dGB - could fit in a 60 MB /system partition. Smallest AOSP rom ever I think... people still use it today :)

Thanks :)

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Android Development] sewer56lol:
Yep, battery clock works here as well.
[Nexus 5 Android Development] lyzanxia:
How can you set the date? It always backups with a wrong date (year 1970 :) ).

Great recovery, love it!! Thanks for making it!
[Nexus 5 Android Development] :
Hi,

You can't actually and it's the same thing for the wrong time:

:)
[Nexus 5 Android Development] lyzanxia:
Ah, sorry..didn't know it reflected on the date too...

Thanks for the reply
[Nexus 5 Android Development] fix-this!:
Keeps asking me to set the data/media while in recovery. Also starts up super slow.
[Nexus 5 Android Development] danarama:
Odd. It should detect you're a /data/media/0 kinda guy.

Just go into advanced and make sure storage is set to /0. If it is, toggle off and on again and reboot.

Not sure what you mean by slow. You'll need to give details.

If you still have an issue with data/media please upload /cache/recovery/last_log as a text file

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 Android Development] DowntownJeffBrown:
First time I've used PhilZ recovery and so far I'm loving it.

>^.^< Sent From Meow nexus5
[Nexus 5 Android Development] charesa39:
Ah. I see. Thanks for the quick response! If I may ask, could this error potentially cause issues with partitions or anything like that since it doesn't properly finish restoring? Or does it successfully restore up to a point, and just restarts after that partition restores? I just want to know in case I messed something up trying to restore it twice consecutively, or if I need to restore an earlier backup that will restore properly. Sorry for all the questions. I'm still a noob trying to learn, and want to make sure I don't have issues that may lead to excess battery drain or anything like that.
[Nexus 5 Android Development] danarama:
Nope. Just data integrity, nothing more
[Nexus 5 Android Development] Phil3759:
Restore /data is done properly. Only second phase where it restores selinux attributes is broken

As i said, on most non Samsung devices it is not important as you still get default selinux attributes
[Nexus 5 Android Development] danarama:
Whoops [MENTION=4666971]Phil3759[/MENTION] I repo sync'd and got all the latest commits.

Is it a still WIP? Is there any harm in waiting for 6.42.2 to be released with the SELINUX issue? It doesn't affect everyone and isn't harming their restore?
[Nexus 5 Android Development] Phil3759:
You can merge 6.42.4, it is official

In any case, it will be just a 6.41.8 like recovery unless you enable f2fs flags, which you don't need
[Nexus 5 Android Development] danarama:
Ok thanks. Off to bed soon so will start again tomorrow.

Would like to get f2fs working but my situation here is different with kernel. Will pick up in other thread with you later
[Nexus 5 Android Development] Unb0rn:
F2FS

So F2FS support added in 6.42.4!? Great news, Phil! Maybe it would be a great idea to compile f2fs version as well? There are some kernels supporting it, after all... Keep up great work! And Thanks.
[Nexus 5 Android Development] danarama:
Any Nexus 5 users familiar with AOSP kernels with f2fs support that are almost stock? Or familiar with working aosp kernela and would like to contribute to adding f2fs support to an aosp kernel?

I'm starting from scratch here so any help and advice welcome
[Nexus 5 Android Development] Unb0rn:
I think, Faux's kernel is AOSP-friendly and he added f2fs support in April. So maybe we should ask him? :fingers-crossed:

Here is his Github.
[Nexus 5 Android Development] danarama:
Thanks...

And also this may be a possibility: http://xdaforums.com/google-nexus-5/orig-development/nexus-5-f2fs-t2668486 - hopefully less bells and whistles as Faux will have a lot of extra commits that we wont / cant use.
[Nexus 5 Android Development] Unb0rn:
Yep! Never gave it a chance because I'm using CAF kernel from the day i bought my Nexus. But it looks promising and clean. Can't wait for tomorrow!:)
[Nexus 5 Android Development] danarama:
I'm going to bed now. Got work tomorrow then evening of TV and Whisky.

After that I will start extracting the zImage from that as it is just stock AOSP+F2FS and compiling. I've also updated my AOSP repo just in cse but I am hoping I dont have to go that route. Tomorrow may be a pipe dream. Let's see how I get on. I compile better with Whisky inside me.

I won't really have any way of testing f2fs... So I'll need testers.
[Nexus 5 Android Development] adrman:
Almost everything is better with good whisky inside you. ? What's your flavor?
[Nexus 5 Android Development] danarama:
I prefer anything Islay.
[Nexus 5 Android Development] adrman:
mmmm, Lagavulin.
[Nexus 5 Android Development] Phil3759:
Big thanks

A small note, as soon as you exit menu, the toggle mode will be disabled
[Nexus 5 Android Development] danarama:
Ah Ok cool. Thanks for clarifying that
[Nexus 5 Android Development] danarama:
So I know it's early days and only an expected handful of you have downloaded the test img but I don't want to package up until I've had feedback on f2fs migration from at least 1 person.

Anyone been successful yet?
[Nexus 5 Android Development] j_dee:
Gonna give it a try this evening ;) I didn't succeed with setting up my device as F2FS / F2FS-ALL yet, but it always had to do with TWRP, so let's see if I have better success with Phil'Z Touch (don't mind, I know what F2FS is and how to set it up ;) ).

Btw is it like TWRP where you have one default recovery for EXT4 and a modified image with F2FS-support, or can it handle both at the same time?

I'm gonna try this:

Latest SlimKat (5.4 if I'm not mistaken) with Furnace 1.1.2 or 1.1.0 AOSP F2FS Kernel. I'll be back :D

Greetz

// j_dee

Gesendet von meinem Nexus 5 mit Tapatalk