yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Phil3759:
To simplify maintenance, I went with another way. I want to avoid adding flags outside BOARD_RECOVERY_DEFINES

Also, I dropped by intention to add true/false/string different foreach loops. Sounds complicated

So, the flags stay value insensitive. That is, trying a BOARD_HAS_NO_FB2PNG := false will give wired results

That's how all recovery flags are defined anyway. We can do checks for true/false, but we need then to define the default value too.

Too much unneeded effort.
[Android Software Development] Phil3759:
I did not follow exactly your issue here

How is all this supposed to ease your life?

And where is recovery.xml?

I am not a git pro
[Android Software Development] shoey63:
Well, if you go to your build directory, Ctrl H /.repo/local_manifests (create if it doesn't exist) and create an *.xml file (eg Philz.xml)

and then inside - put

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="philz" fetch="https://github.com/" />
<remove-project name="CyanogenMod/android_bootable_recovery" />
<project path="bootable/recovery" name="PhilZ-cwm6/philz_touch_cwm6" remote="philz" revision="cm-11.0" />
</manifest>

After that is done "repo sync" will automatically put philz_touch_cwm6 files into /bootable/recovery instead of cm11 ones.

then it is just a matter of

$ source build/envsetup.sh
$ breakfast <device code name eg: yuga>
$ mka bootimage
OR
$mka revoveryimage (depending on device)

Now THATS what I call making life easy:victory:
[Android Software Development] danarama:
May have to give this a go. I tried to put phikz git in my cm 11 manifest but it didn't work. Are these steps above exhaustive?
[Android Software Development] shoey63:
Piece of cake. Just make a seperate xml file in ./repo/local_manifests.

done ;)
[Android Software Development] shoey63:
It was [MENTION=4021423]ketut.kumajaya[/MENTION]
[Android Software Development] impactor:
Yeah, but doesn't a recovery come with its own kernel?
[Android Software Development] carlusmagnus:
PIT file

To understand better, in PIT file there are Kernel and Recovery separate partitions (original pit has 8mb for either), so it seems. Then every Rom deal this partition like if it's only one? It's right? Or it's more complex?
[Android Software Development] Phil3759:
ah, you was meaning local manifests. Thats how you can sync your device tree to a custom git

However, recovery, like other cm core parts, is in the main manifest. I am not sure adding a local manifest is the proper way. Better edit the main manifest. But if it works by just adding a local one, then good for you

See my above answer maybe
[Android Software Development] Phil3759:
It is there, but not used
[Android Software Development] DF5JT:
Can't restore EFS

Hi,

I made some full nandroid backups with an older version philz_touch_6.12.8-jfltexx.zip and would like to restore the efs partition from one of these older backups. Obviously the older version was not prepared for the new nifty feature, thus no .efs_backup/ directory exists. I created it, both directly under clockworkmod/backup and under the clockworkmod/backup/$DATE/ directories, but still I can't find a way to specifically chose any of the efs.ext4.tar files available.

How can I do this?
[Android Software Development] Phil3759:
The backup did not change at all in that regard

example of path:

clockworkmod/backup/.efs_backup/2013-10-05.23.07.09
efs.ext4.tar
efs.ext4.tar.a

The data is in the .a file. The .tar is empty

To restore you must use the custom restore job menu
[Android Software Development] hachamacha:
Does anyone know anything about a reason why /persist fs couldn't/shouldn't be added to the nandroid lists? Thanks.
[Android Software Development] Bhargav97:
So, exactly...doing this will first sync the /bootable/recovery with cm-11.0 stock CWM sources and then it will sync and override your philz sources on it. Is it so? or I misunderstood?
[Android Software Development] Phil3759:
I have no idea, never tried

But if it works with a local manifest, then just do it
[Android Software Development] Bhargav97:
[MENTION=4666971]Phil3759[/MENTION],

Help me of you know any main reason that can cause this:

Problem is: I'm making recoveries for all the devices under androidarmv6 (which my device: galaxy5 was using) sources and I've so far made for 5 devices. It works fine for 3 of them but for 2 of them: gio and tass (codenames), it's causing a problem. Recovery is working fine and they can do everything but when they restore/install or just simply reboot to system, they every time boot to recovery and not the system.

Seems like their default boot partition was set as recovery. So, I asked them to restore 'boot' of a backup OR install a new ROM with full data wipe bit they still get stuck at recovery. If they install any other recovery zip file and then reboot to system, everything is fine. o_O

I can assure that BoardConfig.mk and BoardCommonConfig.mk have correct tags. I also checked their recovery logs via adb but didn't find anything strange or doubtful.

Do you have any idea where the error can be?
[Android Software Development] Phil3759:
some flags must be set on param partition, or similar

Usually, it is done through the postrecoveryboot.sh script

Just look at examples in other devices and try to figure out correct settings for your device
[Android Software Development] hachamacha:
Shoey -

I'm trying to follow in your steps here but it strikes me that in the XML line <project path> that 'remote=philz' seems like it has to be defined somewhere. (I mean 'philz'). Does that just work without anything else for you? I think I got by it by using 'remote=github' which is defined in the default.xml. (Well, I think so, not sure because it takes about a year to build cm11 in a VM ;)

The year went by quickly and turned into this error:
[Android Software Development] danarama:
Just tried and works for me.
[Android Software Development] titanic_fanatic:
What you are referring to is the remote which is only a label for defining other information such as git address and other info. philz is downloaded from github.com so most likely you can set your remote to gh or github which are probably already defined in the default.xml of your ROMs .repo dir. These will be defined at the top of the default.xml.
[Android Software Development] hachamacha:
It turns out the problem was the usual one (where I'm a Gitiot).

I'd forgotten to get rid of the pre-existing bootable/recovery dir which caused problems ;)

I'm building now. Thanks.

---------- Post added at 11:33 AM ---------- Previous post was at 11:31 AM ----------

Yep, I'd tried that and got it to work just before I saw this (github) but thanks very much.
[Android Software Development] DF5JT:
Don't take this as insolence, quite on the contrary, but this doesn't make sense at all to me.

There has never been a .efs_backup subdirectory, I needed to create it manually. I needed to move the $DATE subdirectory, including all the backups of system, data and md5 sums and THEN I could finally restore the /efs partition in recovery. Also, there has never been a efs.ext4.tar.a file. Restore went fine without it and the .tar was obviously not empty.

You have been extremely helpful, so thank you very much (also for the great software)!

Alas, all this didn't help, my IMEI is still 0 and all my provider lets me do is Edge connectivity now.

Do you know whether the /efs is now in its virginal state before I flashed any custom ROM?

Again, thanks a lot for your help!
[Android Software Development] hachamacha:
Local msm8960 thread updated for 6.22.7:

http://xdaforums.com/showthread.php?t=2686374
[Android Software Development] STAticKY:
That's what I ment. You could use this with tasked to do the scheduling http://xdaforums.com/showthread.php?t=1620255 otherwise you could probably write a script to reboot to recovery, backup then reboot. And schedule it for when you wanted...

TP.
[Android Software Development] kantjer:
OBackup can do that for you including backup management (save x latest backup and remove older ones)

OBackup uses the Online Nandroid script for the backup itself.
[Android Software Development] Phil3759:
Look also in i9300 thread. Some users wrote guides to use ors/extendedcommands scripts with tasker
[Android Software Development] Phil3759:
AT&T and Verizon Galaxy S4 updated now with loki patched images. Many thanks to all who gave support and helped with this
[Android Software Development] pilotn:
You can try orange backup
[Android Software Development] leonlfm:
Can someone tell me how i can set the time in Philz toch 5 Version 6.0.3.2?

I cant find it, but the time in the screen on the right upper is not the same time as the normal time.
[Android Software Development] xclub_101:
Is there a 5.06.6 for i9300?

Is there a 5.06.6 for i9300? The latest that I see at http://d-h.st/users/philz_touch/?fld_id=16049#files is 5.06.1 :rolleyes:
[Android Software Development] Phil3759:
Gui settings
[Android Software Development] leonlfm:
Thanks for your answer.:good:
[Android Software Development] devilmaycry2020:
hi all

why dont support xperia phone ? too bad
[Android Software Development] Phil3759:
Galaxy S4 variants only:

To people having issues to mount external sd 64Gb exfat cards while it mounts on previous versions of my recovery

Can you try in adb shell or Aroma console:

mount -t exfat /external_sd

And report if it mounts your external sd while you cannot inside recovery menu
[Android Software Development] hkjr:
sg3 att version

any support or unofficial support towards sg3 att?
[Android Software Development] ibukimasta:
i get error can't read '/etc/fstab': No such file or directory
[Android Software Development] Super777man:
OTG = externalsd?

What happens if you have external micro SD with OTG connected during recovery?

does it detect the OTG then?
[Android Software Development] BlackGURU:
Thanks for this, But please is there a way you could lower the Vibration intensity, I don't want it off, but I feel it is a little too strong. Thanks and God Bless
[Android Software Development] icedmayhem:
On my att s4, cannot backup my data as it comes up as 26+ gigs in size. Running cm and it shows the same in twrp, any ideas.. I'm at a lose of words

Sent from my Galaxy
[Android Software Development] Phil3759:
provide a log

Do you have cached google music?
[Android Software Development] daibaron:
[Q]Super Wipe(New Rom)

If I use the super wipe (new rom) , will I be able to recover my phone from a backup ?
[Android Software Development] Phil3759:
if your backup includes system and data, yes
[Android Software Development] Adam77Root:
Adding support for Samsung Galaxy R (GT-I9103)

Hi!

Thanks for this amazing recovery! Keep up the good work!

I have compiled it for my Samsung Galaxy R (GT-I9103) and it's working really great. It would be very great if you could add support for it.

Device tree: https://github.com/CyanogenMod/android_device_samsung_i9103

Kernel tree: https://github.com/CyanogenMod/android_kernel_samsung_n1

(cm-10.1 branches for both)

Android.mk modification:

#Galaxy R / Z - i9103
else ifeq ($(TARGET_PRODUCT), cm_i9103)
TARGET_NAME := i9103
LOCAL_CFLAGS += -DTARGET_DEVICE_I9103

device_config.h modification:

// i9103
#ifdef TARGET_DEVICE_I9103
#define BOARD_UMS_LUNFILE "/sys/devices/platform/fsl-tegra-udc/gadget/lun%d/file"
#define BOOTLOADER_CMD_ARG "download"
#endif

Both CWM and TWRP configs can be found in the BoardConfig.mk. It may happen that the compiled full version is bigger than the recovery partition (build throws an error about exceeding the size). This happens with TWRP. In this case I use a separate defconfig which builds a smaller kernel. This can be found at: https://github.com/CyanogenMod/andr...0.1/arch/arm/configs/recovery_i9103_defconfig. Also, please keep in mind that this is a non-NEON device (unfortunately CWM online builder doesn't support non-NEON devices).

Hope you can add support! If you have any questions, I'm ready to answer.

Thanks in advance! :)
[Android Software Development] KiakSvk:
Hi!

Every time I try to flash theme through CWM it gives me this "E:Can't open data/media/0/theme.zip (bad)" Instalation aborted error. I thought it's because of a corrupt download, but I downloaded it again and again, and it still ain't working. I also tried different zips, but always the same error.

I formatted my SD card. I actually did it several times reinstaled rom, root, recovery. Still no luck.

i9505 4.4.2 stock rom

philz_touch_6.07.9-jfltexx

Can someone help?
[Android Software Development] danarama:
This isn't the support thread but you're right...its a corrupt download. If all your downloads are corrupt, change your download method
[Android Software Development] Phil3759:
sure if you try to restore a tar not mine, do not expect it to ever work

if you do not have tar.a, it means it wasn't created by cwm, and ensure I know what I am talking about
[Android Software Development] Phil3759:
Update 6.23.2

Should be a very nice one ;)

check the last 3 meaningful commits on my git

shuuut: or we get bombed by all to update recovery
[Android Software Development] danarama:
Workaround of lazy rom devs?

;)

Is everything commited?
[Android Software Development] Phil3759:
No,

Just made it 6.23.3 to even hammer more the lazy developers :D
[Android Software Development] Phil3759:
Can you rename your thread and files to follow other devices?

[moto_msm8960][xt926/5][CWM Advanced Edition] PhilZ Touch .... what ever you want here ...

and the files you upload:

philz_touch_6.22.7-moto_msm8960.img

That way, I can subscribe to your thread and keep track of it along my hundreds of subscriptions

I could easier continue uploading your work to official goo

by the way, your ramdisk includes the extra.fstab file?

think to explicitly add it in product_copy_files
[Android Software Development] hachamacha:
Sure, not a problem. I'll look into the extra_fstab and product_copy world.

Thanks and I'll fix it up for the next release here (which seems momentarily).

Edit: OK, it's fixed up now.
[Android Software Development] Phil3759:
extra.fstab file is only needed to be able to format extra storage to some custom fstypes

You can test on your external sdcard or an USB key with OTG cable

Check your main thread: I posted tips about the /persist
[Android Software Development] Pons:
About the local manifests. In .repo/local_manifests/philz.xml (name is up to you). This should remove the CM team's recovery, and replace it with PhilZ. If you need to replace more, just follow the example. This is preferred to editing the actual manifest directly, which may give you problems when it updates from time to time. Have it look like this:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<!--PhilZ Recovery-->
<remove-project path="bootable/recovery" name="CyanogenMod/android_bootable_recovery" />
<project path="bootable/recovery" name="PhilZ-cwm6/philz_touch_cwm6" remote="github" revision="cm-11.0" />

</manifest>

Ref: http://wiki.cyanogenmod.org/w/Doc:_Using_manifests
[Android Software Development] hachamacha:
Good deal. Thanks. Btw: Thread is fixed up with your conventions now.
[Android Software Development] Phil3759:
reading the wiki to start should be the first step :good:

I wasn't aware of the remove-project command, good to know
[Android Software Development] Phil3759:
thank you :good:

I added another suggestion there

But please, maybe we keep dev discussion here, so that all can benefit from it:

to resume my answers:

about hiding some partitions from "Mounts and Storage" menu:
[Android Software Development] hachamacha:
Really good information up there about the extra partition and that "ro.cwm.forbid_mount" thing is very interesting. I'll continue response to the points you've made in some other post when I'm doing the next version and testing your suggestions, but I also have another question, much more mundane ;) :

I have to admit I've only tried out a fraction of the things that your recovery offers, not even seen all the screens yet, but it looks as if screens have a one-page limit (or am I missing something about 'scrolling' here)? If so, and I decide I want to use some of the extra_partitions for backup/restore purposes, then what happens if I exceed the page size?

For the moment, I just want to get one more in there, but if someone wanted one more, then someone else will want 3 more and so on.. I noticed we can set font size too which could be one way to squeeze something in. I guess my main point is whether I'm missing something about what the intent was regarding exceeding a given amount of information on a single page (whether or not scrolling is something that happens).

For me: You're already offering more choices than I can use, so it's not an issue in my world but I'm curious about someone that thinks it's "essential" to backup more partitions than fit on a page.

Thanks.
[Android Software Development] WhammyDroid:
Is the moto x (xt1060) still being updated? The last I see is 6.19.
[Android Software Development] Unjustified Dev:
[MENTION=4666971]Phil3759[/MENTION] could you help me storage/sdcard1 doesn't mount initially when coming into recovery same with cwm

If you try to push to storage/sdcard1 before manually mounting it . It will make the external sdcard not mount

Here's my recovery.fstab

https://github.com/Team-Exhibit/android_device_samsung_codinalte/blob/kk44/recovery.fstab
[Android Software Development] Phil3759:
Because folder is created on first mount, not in ini
[Android Software Development] Unjustified Dev:
Is there a way to fix it? Just wondering how cwm does it. Twrp mounts fine.
[Android Software Development] Phil3759:
Mount in recovery or mkdir before any adb push.
[Android Software Development] Ruling:
[Ace] CWM 6.0.4.7 Advanced Edition / PhilZ Touch 6.23.3 Update today.

Download:

View attachment 2647311
[Android Software Development] Krishanshu:
Is is stable? :eek:
[Android Software Development] shoey63:
No need for...

Just try it, and if there are issues, re-flash whatever was stable before, and report in your device specific thread;)
[Android Software Development] shoey63:
Just a confirmation that screenshot is working just fine in Yuga with 6.23.3
[Android Software Development] Phil3759:
It was a long tough debugging race, but seems to work on all actual devices, for now...

At least it is easier to get some debugging info

I will enable again a default gesture for screenshots
[Android Software Development] shoey63:
I was there at the beginning, and will continue to debug when required:)
[Android Software Development] Bhargav97:
Hi Phil3759,

Something really weird.....please see:

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

This device is Galaxy Gio (gio) and is also using androidarmv6 sources and has a full version? How? How? How? It made me really crazy.

How did you not got any error while adding full touch support in it?
[Android Software Development] Phil3759:
I see no where that it has full version. They talk about only advanced. They have old version 5, so impossible as libtouch was released only a few weeks ago. Before that, it was impossible for a device to get full version unless i compile it myself. And i never compiled for that device.

I would open source the libtouch_gui without second thoughts. It would make it more rich having devs look and enhance my ugly touch source.

However, since cwm touch is retail, i won't do to avoid any third party troll starting another payed competition with koush based on code from my side.
[Android Software Development] Arctic Prodigy:
Boot Certification Error!

After trying to flash, dead Android buddy then flash again with another CWM he came back alive but upon reboot this showed up:

Secure booting error

Error: Boot Certification Verify!

Now how do I fix this?

LG G2 D803

flashed newest version of CWM philz_touch_6.19.7-d803.zip

Anybody have a fix cannot get back into recovery and just flashing with flashify does not work.
[Android Software Development] Bhargav97:
Sorry. I was in hurry. Looking at that guy's thread with screenshots and all that, I thought it is full version.

So, if you'll make libtouch_gui open source, Can we get full version?
[Android Software Development] McKael:
Hi there!

Thanks to all of you who tested the different fb2png versions and helped us improve the utility :good:

For the record, since it seems to work fine on all tested devices, I have opened a pull request to merge the changes [MENTION=4666971]Phil3759[/MENTION] and I did (e.g. padding support and multiple buffers) to the upstream fb2png repository.
[Android Software Development] danarama:
The whole point of libtouch_ gui is so people can compile with touch without needing the sources. Its not going open source
[Android Software Development] Bhargav97:
Thanks but I do know this. These lines by Phil3759 just confused me:
[Android Software Development] gu5t3r:
Can someone point me to guide how to compile PhilZ Touch CWM Advanced Edition for my LG Optimus G E975?
[Android Software Development] Phil3759:
And, you made the core part: padding

Just like you added ABGR a year ago :good:

If just you had more time to dig into recovery sources ;)
[Android Software Development] danarama:
I think you missed the next few lines, which was the crucial part
[Android Software Development] Bhargav97:
Use xda-university.

[MENTION=2872010]rootSU[/MENTION]

Now, I got it. :P
[Android Software Development] gu5t3r:
Thanks, but that didn't helped me much... Can someone make a How To for PhilZ CWM, few commands I should run and where to put which files extracted from previous PhilZ version?
[Android Software Development] danarama:
First, learn how to build cwm from cm11 sources. They have a walkthrough on their site somewhere
[Android Software Development] hachamacha:
That was the step that got me going on the msm8960's. All I really had was a bunch of Linux kernel experience before that, but no real idea how to build CWM or this. The recent discussions and findings on ./repo/local_manifests/*recovery.xml have made the whole thing a lot easier too. For a very bare-bones version (that works usually) of this recovery, do what rootSU said , then the only thing you might have to modify is ./bootable/recovery/boardconfig/BoardConfig.mk (or I did), and you should be able to get a build out.
[Android Software Development] unibombz:
Excellent update coming from a older version. DPI issue fixed for my phone specifically, and the extra features and options are slick. Thank you again, keep up the good work ! :)
[Android Software Development] hachamacha:
Regarding the mount of "/persist /persist" from recovery.fstab, and my changing it to "/persist /extra_part1":

Took me awhile to figure out that one file I might change that would persist and propagate to ./out was in the devices tree as fstab.qcom (well, in my case anyway). I made the one change, then temporarily disabled the cwm.* 'forbid' flag for "/persist", and only have the guts to test it in backup mode but not restore (I have just one phone).

I can back up /persist now (which is seen as /extra_part1), and the directory seems OK. I'll do an analysis of the .gz.* file it produced. I might only be halfway there, but I'm leaving it to those people that have a pressing need for /persist and an extra phone or 10 to do the heavy lifting on /restore testing. I'm not putting any test cases in the main post in the device thread.

I've got to setup your recovery in my own github world and fork off a test tree, otherwise tracking my changes is too big a waste of time.
[Android Software Development] JustinXu:
threads of philz touch [6.23.3] for all versions of LG Optimus G:

- LG Optimus G International (e975)

- LG Optimus G ATT (e970)

- LG Optimus G Sprint (ls970)

- LG Optimus G Canada (e973)

https://drive.google.com/folderview?id=0B9EFp1W1O3f2SXp2bVcycXpfRkU&usp=sharing
[Android Software Development] ali.filth:
Hi Phil..

I was build this recovery for Sony Xperia L C2105 and it works fine..but I had the same problem as in my samsung device..I got recovery loop after reboot system..can you or any one in here give me little solution about this problem?

I don't have more knowledge on this device, cause the Xperia has different characteristics with other.

Thanks