yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Phil3759:
Well, maybe you have a locked bootloader
[Android Software Development] ibukimasta:
twrp 2.5.0.2 and cwm 1.0.3.5 work fine though?
[Android Software Development] dlsolo:
Those work because they utilize Loki patch or what ever it is. Phil, has the same thing on my wifes SGS4. Was able to boot back up and flash twrp via GooManager.

Does your recovery utilize the Loki patch?

Sent from the future using a flux capacitor
[Android Software Development] Shawn:
Nope, it doesn't utilize it.
[Android Software Development] ibukimasta:
yea i got it patched with loki and its working now on verizon s4.
[Android Software Development] nweaver11:
Any chance of a link to the VZW patched zip? I'd love to give this a try
[Android Software Development] ibukimasta:
philz_touch_5.06.6-jfltevzw (Loki Patched)
[Android Software Development] mike105217:
Anyone know a way to automate my Nandroid backup process?
[Android Software Development] STAticKY:
You mean like scheduled online nandroid backup?

Edit: online meaning the device is up and running rather than booted to recovery...

TP.
[Android Software Development] mike105217:
More like at 2am on Wednesday night it makes one automatically

edit I don't care if it goes into recovery But the general idea yeah
[Android Software Development] acabreram:
Bro i can´t boot with the recovery for ZL (odin) could you fix please i have to came back cm11 recovery (very standart!!) jejeje
[Android Software Development] shoey63:
That's my fault, sorry:o

I'll try and fix.it (I only have XZ)

Better remove that Odin link [MENTION=4666971]Phil3759[/MENTION].

Apologies for the inconvenience.
[Android Software Development] acabreram:
Don´t worry! i be able to test any version!! i really want this.

Thank for all [MENTION=4675598]shoey63[/MENTION]
[Android Software Development] shoey63:
Hi Phil. Having trouble trying to flash zips from exfat extSdcard with 6.21.2 on CM11. Regardless if I tick MD5 verification or not for zips, the log shows "checking MD5sum", then a blank screen, then straight back to recovery "home" screen.

Here is the logView attachment philz_recovery.txt

Also, when compiling boot.img for odin, I get this error message.

bootable/recovery/recovery_settings.c:123:5: error: 'BRIGHTNESS_SYS_FILE' undeclared here (not in a function)
make: *** [/home/shoey63/android/system/out/target/product/odin/obj/EXECUTABLES/recovery_intermediates/recovery_settings.o] Error 1
make: *** Waiting for unfinished jobs....
shoey63@Ubuntu1204:~/android/system$

Please have a look at it when you have the opportunity :)
[Android Software Development] chraso:
You may find the path to it in your device's init.<devicename>.rc file

and about restoring, you have put a li'l less info about your backup.

log shows you are trying to restore cwm backup.

moreinfo pls.
[Android Software Development] Striker333:
Can't you flash the version of twrp via odin and restore your backup?
[Android Software Development] Phil3759:
as [MENTION=4141775]chraso[/MENTION] said, you have to define the brightness sys file here

https://github.com/PhilZ-cwm6/philz_touch_cwm6/blob/cm-11.0/boardconfig/BoardConfig.mk

The log shows it is crashing

Is the issue only with exfat?
[Android Software Development] Bhargav97:
Hello Phil3759,

I need help again. You told us to add a few LOGI commands at some definite places but actually I'm not a C expert and [MENTION=4141775]chraso[/MENTION] is busy right now and can't help in this for few days.

So, would you please do me a small favour? Here's my recovery.c file:

http://www.upload.ee/files/3943905/recovery.c.html

Can you just put those LOGI commands at the places you feel like putting and attach the modified recovery.c here or upload somewhere and link me, please.

Sorry again for being late, busy with other things. I'm free for some time now, if you give me the modified recovery.c...I would post the recovery log here very soon.

Thanks for your efforts.... :)
[Android Software Development] ali.filth:
recovery loop solved

hi phil..thanks for your suggestion..now our recovery comes perfect without recovery loop..i was solved it..next i will share it on my device group :D

thanks
[Android Software Development] Phil3759:
Did you read my answer?

Put them in ui.c/ui_init()

Just put after each code line. Won't do you harm
[Android Software Development] MikeyLee:
Do you have a version of this that will work with the Sprint T-217S Galaxy Tab 3 LTE
[Android Software Development] ali.filth:
Post group link

hi Phil..this is my thread link on my device group..hope you can update your database :D

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

thanks
[Android Software Development] shoey63:
[MENTION=5194118]acabreram[/MENTION]

Ok test this version. cm11flashablezip

[MENTION=4666971]Phil3759[/MENTION]. Installing zips crashes on fat32 sdcard as well :(

Anyone else?
[Android Software Development] acabreram:
Well i tested and now

i can boot in to recovery.

I did a backup to sdcard1

The recovery identify my device like ZL

But i can't flash any .zip

Thanks!
[Android Software Development] MirXas:
This recovery was recently compiled by [MENTION=4827383]ali.filth[/MENTION] and SG Core (GT-I8260, arubaslimss) is also supported, please add to the list of Samsung devices :)
[Android Software Development] Phil3759:
Can you compile with disabling these lines in extended commands.c:

sprintf(tmp, "Yes - Install %s", BaseName(file));
if (install_zip_verify_md5.value) start_md5_verify_thread(file);
else start_md5_display_thread(file);

yes_confirm = confirm_selection("Confirm install?", tmp);

if (install_zip_verify_md5.value) stop_md5_verify_thread();
else stop_md5_display_thread();

change to:

sprintf(tmp, "Yes - Install %s", BaseName(file));
/*
if (install_zip_verify_md5.value) start_md5_verify_thread(file);
else start_md5_display_thread(file);
*/
yes_confirm = confirm_selection("Confirm install?", tmp);
/*
if (install_zip_verify_md5.value) stop_md5_verify_thread();
else stop_md5_display_thread();
*/

If nothing changes, could be an issue with your vold binary or the path permissions!
[Android Software Development] Unjustified Dev:
[MENTION=4666971]Phil3759[/MENTION] codinamtr is now codinalte. Change was made to unify all devices in a better way here's the changes

https://github.com/Team-Exhibit/philz_touch_cwm6

device

https://github.com/Team-Exhibit/android_device_samsung_codinalte/tree/cwm-philz

Kernel needs renaming to codinalte

https://github.com/Meticulus/android_kernel_samsung_codina
[Android Software Development] Bhargav97:
Hi Phil3759,

Added LOGI functions like: LOGI("THIS IS LINE XXX");

And...compiler is giving error:

bootable/recovery/ui.c:161:1: error: expected declaration specifiers or '...' before '(' token
bootable/recovery/ui.c:161:1: error: expected declaration specifiers or '...' before string constant

What's wrong? Is the syntax of LOGI command I illustrated above wrong?

I know some days before also I posted same kind of error and I said that I could get rid of them but it was chraso that was compiling at that time and he didn't tell me that he actually removed all the LOGI commands and compiled.

This time I am keeping watch at compiler logs to see the errors and I tried different things but this error occurs at the line where I add LOGI. Sorry if it is a silly mistake because I don't know much about it.

Thanks...
[Android Software Development] Phil3759:
will merge into next update :good:

Please feel free to continue updating your device in your thread
[Android Software Development] shoey63:
That seems to have fixed it:good:

No fancy bar progress or text showing md5 check - seeing as it is now disabled ;)
[Android Software Development] Phil3759:
Not good for my md5 sourced...

Will look at them
[Android Software Development] ali.filth:
link release

http://d-h.st/Aaj (philz_touch_6.07.9-arubaslim.zip)

http://d-h.st/tzF (philz_touch_6.07.9-arubaslim.zip.md5)

http://d-h.st/N1m (philz_touch_6.07.9-arubaslim.tar.md5 )
[Android Software Development] Bhargav97:
please help.
[Android Software Development] Phil3759:
LOGI("step 1\n");
[Android Software Development] shoey63:
You're doing well - keep it up. Just keep trying things. Phil is not into spoonfeeding:p
[Android Software Development] Phil3759:
I will send you by pm a modified debugging code

I really want to fix your crash caused by md5 check

Would you compile my debug versions ?
[Android Software Development] shoey63:
Yup. After work. Ttyl:)

I live in the future, don't forget;)
[Android Software Development] toanau:
How do I turn off the vibration in recovery
[Android Software Development] rudeboiza:
You're kidding right? Settings...
[Android Software Development] toanau:
I mean haptic feedback when u touch to make a choice. New to Phil recovery been using twrp
[Android Software Development] Unjustified Dev:
Sorry about the kernel here's the correct one

https://github.com/Team-Exhibit/android_kernel_samsung_codinalte
[Android Software Development] Phil3759:
forked :good:
[Android Software Development] Bhargav97:
Hello Phil3759,

Please see these:

I've added LOGI (LOGI("step 1\n"); )at 327th line (for testing if it works or not) and as you can see the terminal output, it is same error again. :(

Now, I think I'm maybe writing LOGI at wrong places. Please help me by just putting down LOGI lines in my ui.c. I even don't know what do you mean by 'put them after each code' (i don't know how the code begins and what it is) and especially I didn't got what you were saying about putting in between ui_init() and gr_init(). :(

Here's my ui.c (having LOGI at 327th line).

http://www.upload.ee/files/3946662/ui.c.html

It's been a very long time now that I'm and chraso is working hard on this recovery but after coming this much ahead...I don't wanna waste it all (my and chraso's hardwork). Please, just put LOGI at the correct places and give me back. I'm sure we'll be able to debug the culprit.

Thanks again for your constant support....
[Android Software Development] Phil3759:
LoL

I do not know if I must cry, screem or hurt :cyclops:

Are you sure you want to continue such things before trying to learn a little bit about C/C++?

You are just adding a macro function outside functions!

Anyway, I am not sure my LOGI thing will help since with such modifications from your side I feel I'm gonna loose a lot of my time

Here's modified ui_init() function:

http://pastebin.com/nrSHd9tz

Just replace with this and check the log after it blacks screen

Post the recovery log here in code tags or pastebin please
[Android Software Development] Bhargav97:
LoL.....I'm a BIG noob. :p

I think, It's the time to learn C/C++. :)

It's compiling now... :good:

---------- Post added at 01:19 AM ---------- Previous post was at 12:23 AM ----------

logs are here: http://pastebin.com/RZaYdffD

Strange! Same logs! Nothing extra after the framebuffer line. :(

One more thing I noticed is that the size of cwm advanced is same as full version! Can it be size related? Maybe not because our recovery partition is 12 MB.
[Android Software Development] Phil3759:
try to replace LOGI("1-\n"); entries with:

fprintf(stderr, "1-\n");
fprintf(stderr, "2-\n");
.
.
.
[Android Software Development] slthree:
Hello Phil, I see your active replying to others so I'll take a shot and ask you directly if you have any suggestions for me?

Once I get my phone back to operational, I'll learn a little more how to use your recovery
[Android Software Development] Bhargav97:
Replaced those 5 logi with fprintf and.....

Success!!!!! There is something new in logs! Uptil 4 is there but 5 is absent.

full log: http://pastebin.com/ityVLQ32

Repeated lines in the log:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on (UTC) Mon Mar 17 04:19:24 2014

1-
framebuffer: fd 4 (240 x 320)
2-
3-
4-

Seems like it fails at touch_init(). We'll have to add fprintf inside this function maybe now, right? Can you tell at which places should we add? or can you pastebin it after adding?

Below is the text in ui.c after fprintf(stderr, "4-\n"); (providing just for quick refrence)

fprintf(stderr, "4-\n");
touch_init();
#endif

text_col = text_row = 0;
text_rows = gr_fb_height() / CHAR_HEIGHT;
max_menu_rows = text_rows - MIN_LOG_ROWS;
#ifdef BOARD_TOUCH_RECOVERY
max_menu_rows = get_max_menu_rows(max_menu_rows);
#endif
if (max_menu_rows > MENU_MAX_ROWS)
max_menu_rows = MENU_MAX_ROWS;
if (text_rows > MAX_ROWS) text_rows = MAX_ROWS;
text_top = 1;

text_cols = gr_fb_width() / CHAR_WIDTH;
if (text_cols > MAX_COLS - 1) text_cols = MAX_COLS - 1;

int i;
fprintf(stderr, "5-\n");

#endif

One more thing, I have kept both the flags true in Android.mk

PHILZ_TOUCH_RECOVERY=TRUE

USE_PREBUILT_LIBTIUCH_GUI=TRUE

Should I turn anyone off to help debug easilly or for any other purpose?

UPDATE:

Here's what I added b/w fprintf(stderr, "4-\n"); and fprintf(stderr, "5-\n");

fprintf(stderr, "4-\n");
touch_init();
fprintf(stderr, "s1-\n");
#endif

fprintf(stderr, "s2-\n");
text_col = text_row = 0;
text_rows = gr_fb_height() / CHAR_HEIGHT;
max_menu_rows = text_rows - MIN_LOG_ROWS;
fprintf(stderr, "s3-\n");
#ifdef BOARD_TOUCH_RECOVERY
fprintf(stderr, "s4-\n");
max_menu_rows = get_max_menu_rows(max_menu_rows);
fprintf(stderr, "s5-\n");
#endif
fprintf(stderr, "s6-\n");
if (max_menu_rows > MENU_MAX_ROWS)
max_menu_rows = MENU_MAX_ROWS;
if (text_rows > MAX_ROWS) text_rows = MAX_ROWS;
text_top = 1;

fprintf(stderr, "s7-\n");
text_cols = gr_fb_width() / CHAR_WIDTH;
if (text_cols > MAX_COLS - 1) text_cols = MAX_COLS - 1;

fprintf(stderr, "s8-\n");
int i;
fprintf(stderr, "5-\n");

But, same logs as in previous. Nothing after "4-". :(

So, finally seems like init_touch() has got some issue.

How can that be resolved?

Thanks for your support...
[Android Software Development] cowsquad:
Does anyone have a mirror for this recovery. Goo manager is the worst site I have ever tried
[Android Software Development] Phil3759:
Please delete the line in Android.mk whete it says PHILZ_TOUCH_RECOVERY=TRUE

It will compile Advanced Edition only. It will bypass touch_init(). If i remember you said that even that version is crashing. Post the logs here after thay
[Android Software Development] Bhargav97:
Okay...I'll comment it out. And yes, CWM advanced was even facing the same problem. Let's see what's in the log.

And...what's problem with touch_init()? Can you predict? So, does this mean we will never be getting a touch version?
[Android Software Development] sshafranko:
There is an option that you can click to run twrp mode. After you click that you can restore a twrp back up. This is how I did it. I dont remember exactly where it is but it was somewhere like nandroid settings I beleive...

Sent from my SM-N900T
[Android Software Development] Phil3759:
[MENTION=4675598]shoey63[/MENTION]

The log you attached in the post i quoted shows a crash of gui that is restarted

Your new logs show no crash at all

Hope you get me

This bug is pissing me off as i cannot reproduce it while it is now reported by many people on 2 devices
[Android Software Development] hachamacha:
Hi,

Not sure I'm giving you the right stuff but tried to follow some of the older posts for contributing some devices to the project:

device: moto_msm8960 (tested only on my phone, xt926)

link: Philz-6.21.2.img : http://d-h.st/fCu

link: BoardConfig.mk : http://d-h.st/bCB

link: AromaFM.zip as built during the above make: http://d-h.st/ZPU

Let me know what's wrong with what I supplied and I'll try to get it to you in the correct format. I've been running it on the xt926 since you released the version (6.21.2) and seems fine.

For the missing file error that can show up (the *.recovery.*.rc) , I made one of those but it doesn't really do anything. A "$touch" on it will do the job for an error-free build.

Thanks,
[Android Software Development] Bhargav97:
This error comes when I commented out (added a # in front of) PHILZ_TOUCH_RECOVERY: =true
[Android Software Development] Phil3759:
Thank you

I see they unified the device tree there too, with an ugly name though, LoL

I will upload to goo.im

Feel free to open a thread to create your own support to this recovery :good:

Sorry, a bug on my side :o

Just delete the offending line in advanced_functions.c

Will fix it in next commits
[Android Software Development] Bhargav97:
Ok...adding it and compiling.

A bad news: my galaxy5 got bricked due to a boot format (didn't flash a boot.img after formatting). Hope jig can repair it. :crying:
[Android Software Development] Phil3759:
but you have a download mode and recovery mode? no need to jig
[Android Software Development] Bhargav97:
Our device doesn't have a hardware recovery key combination. And there's download mode which I can't access now. That's what is called a real brick. :(

Now, to enter download mode, I'll have to use jig, If it doesn't work then I'll have to search for JTAG services.

The fact is all these happened due to twrp. Twrp can't write in bml partitions I made a backup and restored it using TWRP. TWRP formatted boot but was unable to write it and so, it's all over. The last mode that's left is 'arm9 emergency dload mode' but even that's not working.

I swear, I'll never use TWRP in galaxy5....if I could ever get it's life back. :p
[Android Software Development] Phil3759:
6.21.9 Update

Hope it fixes the crash on md5 checks

I can no more reproduce it on my i9100

It is a temporary fix for now
[Android Software Development] cowsquad:
Any mirrors? Goo manager doesn't. Download anything
[Android Software Development] 29y6145:
pls help me

I'm using lenovo S920

Chip MTK 6589

http://www.gsmarena.com/lenovo_s920-5385.php

I do not know how to build recovery PhilZ Touch [MENTION=4666971]Phil3759[/MENTION] You can help me

I thank you much

Excuse my poor english

Link recovery stock lenovo S920:https://www.mediafire.com/?25az8y7rzyftt40
[Android Software Development] Bhargav97:
Hi Phil3759,

I commented out that flag as said in previous post and also removed that line in advanced-functions.c and tadaa.....cwm advanced is working!

Before this time, chraso was compiling and he just wrote false in place of true in both the flags and so recovery gave a black screen.

I also enabled swipe touch controls in it. And up and down works but right and left swipe didn't work. Maybe, it's a problem of our sources.

So, what about the init_touch()? What's wrong? Is it your libtouch_gui?

Thanks a lot for your help......
[Android Software Development] Phil3759:
I will send a touch deboug version

touch_init() does nothing really special except key repeat flags set
[Android Software Development] Bhargav97:
Thanks....please just clarify a bit.

You mean you will make debuggable sources and give it to us, right?

My device is still bricked and chraso has also got usbz not working. I just tested this version in my friend's galaxy5. He also doesn't have a pc. I think, I'll have catch someone else to do this debugging. :p

Thanks again....but just confirm me that you mean what I understood.

Can this black screen be due armv6? Because you compiled it for armv7 or maybe you told you made it platform independent! And you made it with sources of kernel 3.x and we're using 2.6. Any of these reasons can cause failure of libtouch_gui, right? Do you have any idea about these?
[Android Software Development] Phil3759:
In that case probably, yes

I see no other reason

touch_init() function actually does nothing except assigning integers a predifined value. Since it is first ever call to libtouch_gui on start, it is probably the reason.

Now, i have no clue or resources to build on a second plateform !
[Android Software Development] Bhargav97:
So, now...I'm leaving it, for this device.

Any way to just include gui options or only clone rom option?

Thanks for support anyways. :)
[Android Software Development] 29y6145:
I'm using lenovo S920

Chip MTK 6589

http://www.gsmarena.com/lenovo_s920-5385.php

I do not know how to build recovery PhilZ Touch [MENTION=4666971]Phil3759[/MENTION] You can help me

I thank you much

Excuse my poor english

Link recovery stock lenovo S920:https://www.mediafire.com/?25az8y7rzyftt40
[Android Software Development] Phil3759:
as long as i compile it on actual platform, external libraries won't be portable, I fear

touch_init() is just some a = b assignement, 4 lines only

It is not the cause
[Android Software Development] Bhargav97:
Yes, maybe you are right.

If you ever succeed in making external lib portable, just mention me on this thread, because I won't be looking at this thread now.
[Android Software Development] Phil3759:
If you know some directives to make it comparible, let me know too. I will gladly help

Thank you for your support
[Android Software Development] DozerD:
Hopefully this answer is no longer needed, but I'm adding it just in case, just further clarifying what post #3022 tried to tell too.

In Philz Recovery, go to Backup and restore / Misc Nandroid Settings / Use TWRP Mode. Place a tick there. After that, go back to Backup and restore, select the restore option that is applicable. From there on it should be straightforward.

Good luck. Let us know if this gets you back in business :)
[Android Software Development] Phil3759:
6.22.1 (18.03.2014)
[Android Software Development] hachamacha:
http://xdaforums.com/showthread.php?t=2686374 is where I put up a link for the xt926/5 (msm8960) thread. It's mostly a cut and paste so you'll have a way to find the .img files I build from your git.

Anyway, hope it's of use and more or less in the correct format. If not, let me know and I'll change it, get rid of it, whatever ;)
[Android Software Development] acabreram:
common guys!! some good samaritan that could dev this for Xperia ZL (odin) pleaseee! Don´t forget us!
[Android Software Development] shoey63:
Coming in about 4 - 5 hours ;)
[Android Software Development] acabreram:
Really

i will wait for it!!

THanks man!!
[Android Software Development] ketut.kumajaya:
[MENTION=4666971]Phil3759[/MENTION] I managed add f2fs support to busybox and e2fsprogs :victory: But somehow repo upload failed with permission danied :confused:
[Android Software Development] Phil3759:
What repo, cm ?
[Android Software Development] karasan68:
galaxy mini (TASS) supporting the
[Android Software Development] ketut.kumajaya:
Yes, CM.
[Android Software Development] tetakpatak:
Hi, Phil.

By porting PhilZ for Tab 2, we've strangely lost ADB connection in recovery mode for P51xx tabs in all PhilZ versions after 6.19.6, altough no changes were done with init.rc (and all these recoveries work perfectly fine with P31xx) ???

Any good hint where could we have done mistake? The "needle" is somwhere....
[Android Software Development] takuhii:
Is CWM/Philz able to be themed?
[Android Software Development] Phil3759:
Check the init.rc that comes with my bundles

For p5xxx you need Samsung id not the init.rc coming with cwm

In my repo, under device_vendor, you find it under rootdir/etc/init.philz*.rc

name

I use a custom makefile to copy it instead of modifying device tree

But what repo is not giving you proper permission to submit?

I am really interested in your commit if you can link me to it.

It can always be of some help
[Android Software Development] shoey63:
flash this boot.img on cm11 and report back
[Android Software Development] Phil3759:
You're unusually greedy with feedback details LoL

So, md5 is fine or not + details if not
[Android Software Development] shoey63:
Working perfectly on yuga:good:
[Android Software Development] ketut.kumajaya:
SSH key problem :D Please check:

http://review.cyanogenmod.org/#/c/61272/

http://review.cyanogenmod.org/#/c/61273/
[Android Software Development] ali.filth:
<br />

SSH key problem :D Please check:<br />

http://review.cyanogenmod.org/#/c/61272/<br />

http://review.cyanogenmod.org/#/c/61273/[/QUOTE]

Sorry if out off topic

[MENTION=4021423]ketut.kumajaya[/MENTION]

Please replay my pm..

Thanks
[Android Software Development] danarama:
Oooh watching githib for that merge :)