yashsingh1/xdaforums huggingface dataset:
[HTC One X] DeeZZ_NuuZZ:
He asked me too and asked how to flash through fastboot as he had done it only with hasoon toolkit... Hm

Gesendet von meinem GT-N7000 mit Tapatalk
[HTC One X] Thunder07:
[MENTION=4666971]Phil3759[/MENTION]......

remember how i told you i wont be studying.... well i didn't :p

So i downloaded & compiled CWM from source, edited it and added all the options I wanted....

1) added a special option to flash the kernels as KL Live(unpacked) Kernels (done by running a modified update-binary... with everything disabled)

2) it will also prompt you of the location (/system, /data, /sdcard) to flash the kernel to before hand

SO :cyclops::p:silly:.... i started going to the library.... because i feel out of place with ubuntu running on my laptop with terminal and cmdline and stuff in the library... like already half my class think Im a "hacker" :p

this is how I'm forcing myself to study :cyclops:

ill start working on this again around Christmas/New Years....

but i want to see what you think my next step should be??

now....

there are 2 things i can do....

1) stick with this approach... the modified update-binary to find the boot img... but this wont work if the zip contains multiple imgs which are not in the update-script

OR (2) scan through the zip for multiple boot.img and prompt the user to choose 1... albt more complicated... I like the sound of it.... as it wont involve a modified binary-update... thus no zip breaking :)

with that said... i'd also like to prompt the user to normally flash the zip

so for 2, there are 2 subset options

a) flash the kernel before the zip... but the problem is, if the user cancels the zip flashing(like in aroma), the kernel would have already been flashed.

b) flash the zip before the kernel... but the problem is if the zip contains a restart line cmd... the kernel wont be flashed

finally, ill also add an option so the user can choose to only flash the zimage or only the ramdisk...

But from your point of view.... you dont really need to care about how will I'll manage these details..... I'll make it work!!

and just provide you with a working code, but i'd like your opinion, Cheers.
[HTC One X] Phil3759:
Go study and come back after the exams :D

Really, there are ****ing more important things in life than this crappy forum

I'll be glad to give you my opinion, I have one, but after your exams ;)

Good luck, the code will interest me as it has potential to be modified for some crazy stuff

edit: added you to my contacts so that you can send me a PM if you like
[HTC One X] Thunder07:
haha, at least one of us cares about my exams :p

the thing is... solving problems.. (and mostly proving people wrong) is an addiction of mine...

while study is remembering already solved stuff.. what's the fun in that!!

Edit:

P.S...

she's my up coming addiction!!

[youtube]0dfZ9BXaNyE[/youtube]
[HTC One X] masated:
I had the same problem with the error FAILED (remote: err = 0xa) and you saved me....

Thanks a Lot
[HTC One X] Mokka1:
hello. I have CWM v5.8.4.0.

I try to flash this one via recovery, but everything stays the same. Am I doing something wrong? In the instructions it says to flash the .zip, and that is what I am doing.

ps: hboot it 1.72.0000, if that makes any difference
[HTC One X] Mr Hofs:
Guess you solved this, as you posted this in other dev threads as well !

Flash the img thsts inside the zip.

Reading is a gift.....use it
[HTC One X] Phil3759:
Back to you after your PM:

1- I do not see how I can continue updating One X for now as it has no working cm-11.0 device tree. Well, device seems primitive and kernel sources are absent for now...

But I see they just added the device tree for cm-11.0, so hopefully it will be fixed soon

2- I think that the safest way is the modified binary. It can directly copy the boot.img before flashing it. What ever boot.img are in zip, it will catch the good one

Obviously, this will fail if the flash is done using external shell, but well, not a big deal

Finally, you should check that update-binary is not a shell script by reading file header and checking for binary magic number

That way, you simply do not break rooting scripts and the like
[HTC One X] Thunder07:
1) can't do much about that for now... but im sure 4.4 will come to this phone some time in the future.

2) 2 problems with that... (a) devs such as Alex-V has 3/4 boot imgs, non which are refereed to in the update-script

b) it just wont work with aroma based scripts... well it will work... but only if the statement we want is not inside a getprop statment

Finally, im adding a seperate installing option, so i wouldn't need to care much about shell scripts...

as you shouldn't be trying to flash a shell script through this option to start with.

sorry for the late reply...

happens everytime.. exams over and life kicks into overdrive!!
[HTC One X] teemo:
[MENTION=4666971]Phil3759[/MENTION]

KitKat... It's done ;)

http://xdaforums.com/showthread.php?p=48786215
[HTC One X] Phil3759:
Yes, noticed that they fixed the kernel path

It was a matter of time since device tree was migrated
[HTC One X] salomaoa:
Am I the only one not beeing able to install this recovery?

I followed the instructions (flashed zip file in "normal" CWM recovery), got the message Phil's recovery was installed but then nothing changed. When I reboot to recovery still get the old CWM recovery...

What am I doing wrong?

Enviado do meu EndeavorU através de Tapatalk
[HTC One X] DeeZZ_NuuZZ:
man you have to flash the .img inside the zip in fastboot...you can't flash .img in recovery...you have to flash it like old cwm,yo
[HTC One X] salomaoa:
What about the remaining content of the zip file?

Enviado do meu EndeavorU através de Tapatalk
[HTC One X] DeeZZ_NuuZZ:
you take the recovery.img from the zip put in location where fastboot/adb files on your pc are and flash through fastboot you don't need to flash the whole zip somewhere
[HTC One X] Full HD:
That's the way it works. :)

Or use this : http://xdaforums.com/showthread.php?t=1734365
[HTC One X] teonagode:
Does the USB mass storage work with this recovery ?
[HTC One X] Thant:
yes it works
[HTC One X] teonagode:
Thx :)
[HTC One X] wigankev:
For some reason Mass storage doesn't work anymore. Anyone else having same problem?
[HTC One X] Thant:
Are you on 6.0 or 5.15 if you are on 6.0 try 5.15 and opsite on somebody like [MENTION=4252827]Mr Hofs[/MENTION] the 6.0 USB not working but on 5.15 work on somebody 5.15 not work 6.0 work
[HTC One X] wigankev:
I'm on latest 6.01.0. 5.15 did work for me but stopped working for some reason so thought i'd update to latest and still same problem. I may try formatting Internal SD

---------- Post added at 03:05 PM ---------- Previous post was at 02:59 PM ----------

Actually i was on 5.11.2 before 6.01.0 sorry i'll give 5.15 a try

---------- Post added at 03:20 PM ---------- Previous post was at 03:05 PM ----------

5.15 working :D Took about a minute at first now opens straight away as soon as i Mount Storage.
[HTC One X] Thant:
good we don't know 5.15 work on someone and for other don't but 6.01 work. And yes on 5.15 have late about 2-3 minutes to someone
[HTC One X] Mr Hofs:
Don't know if it's related but i report it anyway.

I'm indeed still on 5.15 and when i enter the recovery with the usb cable connected it takes minutes to mount. When i enter without the cable attached and enter the mounts and storage menu, then attach the cable and mount it pops up almost immediately.

In both cases no issue as it's working great.

Still don't know why version 6 doesnt mount. Updated all drivers on win 7, 8 and 8.1 ..... Never mounts, not even after 10 minutes.

Cheers
[HTC One X] teonagode:
Same here :( recenlty installed a fresh copy of Windows and installed htc drivers,but it's not mounting.
[HTC One X] Phil3759:
This was answered many times already

I switched from older 4.18 stock kernel to cm-11.0 one

Unless you have a stock HTC kernel with selinux, I cannot revert or you will loose ability to flash any new Kit Kat ROM
[HTC One X] teonagode:
Aha thanks for clearing,I'm using the Viper-X with alex-v kernel and not any CM or AOSP based roms,so does this mean that I need to flash another kernel if I am correct :) ?
[HTC One X] Mr Hofs:
Ah yes now i fully understand, misread it a while back i guess.

Thanks.
[HTC One X] Daekin:
new kernel source was released, [MENTION=1148003]lyapota[/MENTION] already made one custom kernel, hopefully he can add selinux too
[HTC One X] Full HD:
New CWM by Phil is up (for information) :D

http://goo.im/devs/philz_touch/CWM_Advanced_Edition/endeavoru

Thanks, Phil ;)
[HTC One X] stathis95194:
Phil after flashing new recovery (6.07.9), i'm unable to flash anything through recovery. I get the following error.

Start at : Sat Jan 4 13:36:05 2014

-- Checking model ID

script aborted: assert failed: getprop("ro.product.device") == "endeavoru" || getprop("ro.build.product") == "endeavoru" || getprop("ro.product.board") == "endeavoru"

assert failed: getprop("ro.product.device") == "endeavoru" || getprop("ro.build.product") == "endeavoru" || getprop("ro.product.board") == "endeavoru"

Installer Error (Status 7)

End at : Sat Jan 4 13:36:05 2014

Reverting back to 5.19.5 everything is fine. Is there a newer version after 5.19.5 i can revert back to?

Thanks
[HTC One X] Phil3759:
your rom maker must use the new binary-update

You can change it in zip file you install too. Grab a new one from any new cm-11 rom

New updates are mostly for kitkat
[HTC One X] stathis95194:
Thanks Phil. Do you have anywhere the version before 6.07.9 for one x?
[HTC One X] raminjpr:
Try this to avoid the get prop error...:)

I haven't installed the latest Philz recovery yet, but i have used the old version of philz for a long time...i used to get this Get prop Error...

it's pretty easy to avoid the error...mostly you will get this error while flashing a new rom..

So follow these steps...

After downloading the rom.zip (which you would flash in recovery), open it with winzip/winrar..

then after opening it, you will see the META-INF folder, open it...

then open the COM folder >>>> then open GOOGLE Folder >>>> then open Android Folder

Now at this point, you will see 2 files

Update-Binary and Updater-script

You need a free software called Notepad++ to open the Updater-script (Search in google, you will get it easily)..

then after opening the updater-script, delete the Lines, starting with "assert Get Prop" usually it would be 1, 2 or 3 lines max....So after deleting it, save the file, update the zip...

now you can flash this zip, without any Getprop Error....Enjoy..:)

Check this file below and delete the highlighted part...:)

​
[HTC One X] Full HD:
http://d-h.st/users/philz_touch/?fld_id=16046#files
[HTC One X] Thunder07:
[MENTION=4666971]Phil3759[/MENTION]

So this is what I've got so far...

Everything works as expected except the most important line... which is why i'm posting this!!

Also Note, You shouldn't try to apply this just yet...

as it will mess up your update-binary which is used in your recovery zip (make recoveryzip)

but you can have a look there...

So so far..

1)this will add a special flash option which will use (2) my update-binary, with almost everything stripped out,

2)(a)the update-binary still has the getprop and asset commands (for obvious reasons).. (b)with a modified write_raw_image & package_extract_file

when (b) is/are called the boot.img will be extracted and kl-update-script will be called,

that script unpacks the boot.img into the desired location as choosen by (1)

what i plan to do in future updates is...

1) scan through zip for multiple boot.img and prompt the user to choose the desired one

2) automount the flash partition

Finally before i get to my point...

while i am using a modified update binary... you should forget that it is so...

as soon, i will replace it with something entirely different.

As i said in my 1st line...

something is not working...

for some reason when i call kl-update-script i get a success run.. but i see no effect to it being ran

char** args2 = malloc(sizeof(char*) * 6);
args2[0] = "/sbin/kl-update-script";
args2[1] = 2; // defined in Android.mk
args2[2] = malloc(10);
sprintf(args2[2], "%d", ((UpdaterInfo*)(state->cookie))->cmd_pipe);
args2[3] = tmpbootIMG;
args2[4] = kl_kernel_flash_loc;
args2[5] = NULL;
//success = execv("/sbin/kl-update-script", args2);
pid_t child = fork();
if (child == 0) {
fprintf(((UpdaterInfo*)(state->cookie))->cmd_pipe, "ui_print Child %d!!! \n", child);
execv(args2[0], args2);
fprintf(stderr, "execv failed: %s\n", strerror(errno));
_exit(1);
}
int status;
waitpid(child, &status, 0);
if (WIFEXITED(status)) {
if (WEXITSTATUS(status) != 0) {
fprintf(stderr, "run_program: child exited with status %d\n",
WEXITSTATUS(status));
}
} else if (WIFSIGNALED(status)) {
fprintf(stderr, "run_program: child terminated by signal %d\n",
WTERMSIG(status));
}
fprintf(((UpdaterInfo*)(state->cookie))->cmd_pipe, "ui_print Test %d!!! \n", success);
fprintf(((UpdaterInfo*)(state->cookie))->cmd_pipe, "ui_print\n");
fprintf(((UpdaterInfo*)(state->cookie))->cmd_pipe, "ui_print E:Can't run %s (%s)\n", args2[0], strerror(errno));

when this code is ran...(ignoring the output of what came before it)

i get an output like this.

Child 0!!! Test 1!!!
E:Can't run /sbin/kl-update-script (Success)

Also ignore "E:Can't run" as its an output I've added... the more important part is strerror(errno) = "(Success)"
[HTC One X] Phil3759:
I am really sorry, but I have little time to merge and try these patches

Maybe try to start a git repo, commit your changes so that it is easier to look at them online. I will take time to give a quick look in that case despite I do not promise to find a solution as that needs to try and debug the code which I cannot do
[HTC One X] Thunder07:
Alright...

but i actually dont want you to merge and try anything just yet...

as i said.. i'd like to have it fully working with multi boot.img support before you even try it...

i was just wondering if you could spot anything wrong/off in the code above... the one in the code tag.

P.S

multi boot.img support is coming along nicely

Edit:

Also... is there a away to speed up recovery builds... maybe disable kernel build everytime??
[HTC One X] tejeskifly:
with your recovery i can copy to my device only 4-5 mb/s with pure cwm i can 17-18 mb/s.

Im doing something wrong, or this is the max with this recovery?
[HTC One X] Mr Hofs:
It's normal......
[HTC One X] Phil3759:
To stop compiling kernel:

TARGET_PREBUILT_KERNEL := device/samsung/celoxhd/kernel/zImage

As of your code, it is hard to spot something on that portion. I see nothing wrong

Maybe missing permissions

Stock CWM is 5.8.4.0, so not suitable for any kitkat rom

anything before 6.0.4.6 is probably JB based too

Maybe the new KK kernels for your device are not yet optimized

If you do not need KK features, stick to my latest cm-10.2 based ones based on a well proven stock kernel
[HTC One X] tejeskifly:
im want to install androidhd revolution hd rom. So im using stock kernel with each recovery. But with cwm i don't have touch, thats why im using this.
[HTC One X] RedSkyRoad:
Can I please get a link of a recovery that will flash the latest CM10.2? I have difficulty getting my ROM flashed...
[HTC One X] szunyi77:
This works! :good:

philz_touch_5.15.9

Just flash!
[HTC One X] Forsaked:
Anyone got the 6.01-Version of this Recovery?

The 6.07 let me get errors while flashing Mods on ARHD 33.1!
[HTC One X] P1nGu1n_:
You can find it here.
[HTC One X] RedSkyRoad:
Will this one flash CM10.2?
[HTC One X] DeeZZ_NuuZZ:
the 5.15.2 will have no problems

or which is the last 5.x.x version...that will have no problems and will flash fine
[HTC One X] JohnSparrow:
Couldn't mount USB storage using philz_touch_6.07.9
[HTC One X] Thant:
Install older 5.15.x and will work again
[HTC One X] lindahl85:
I have the same problem here...

https://dl.dropboxusercontent.com/u/15852546/philz_recovery515.log

https://dl.dropboxusercontent.com/u/15852546/philz_recovery607.log
[HTC One X] DeeZZ_NuuZZ:
in 5.x.x you need to wait about a minute or two max...then it will work...
[HTC One X] hvihavai:
Hi,

what is the status of this recovery for One X?

latest in goo.im is 6.07.9, and people are still using 5.15.xxx because of the problems. And CM11 nightlies have started for this device, if that was a problem earlier.

And thank you for great recovery.
[HTC One X] DeeZZ_NuuZZ:
5.15.x is only for 4.2.2 and 4.3 roms...but the latest 6.x.x is for kitkat because it doesn't work with older recovery
[HTC One X] teemo:
Install linux on your PC, and say goodbye to all your connection problems :)
[HTC One X] DeeZZ_NuuZZ:
i have also working UMS with 6.07.9 :o never worked before...but i activated adb sideload in recovery....took cable from phone and plugged in back ...then pc recognized it...now i have also with latest UMs working lol :D :)
[HTC One X] lukes91:
guys, am i the only one missing aroma file manager in 5.15.9? i've flashed recovery many times, and downloaded also a couple of times but nothing... when i open aroma file manager i get an error saying that clockworkmod/aromafm/aromafm.zip is missing... :confused:
[HTC One X] Forsaked:
Cause it is not included in the Recovery.

You must download it from the original Thread and place it on your SD!
[HTC One X] lukes91:
lol thank you :D i thought it was inside recovery :silly:
[HTC One X] aleksandar.1:
nvm. delete this post.
[HTC One X] Thant:
[MENTION=618483]Thunder07[/MENTION] are you leave the project with kernel flasher or you change your phone?
[HTC One X] Thunder07:
Neither,

I'm back in college, in from 9 til 4 and 4 til 9 in the library.

And I'm very close to compilation...

Just literally1 error away which is killing me... Cause I'm not getting any error... It just crashes.

With that said I forgot my laptop at a friends place, I might have a look at it 2morrow or the night before.

Send From My HTC One X
[HTC One X] Thant:
Thanks, :good:Thanks,:good: Thanks:good:
[HTC One X] and313:
Delete. I should read the previous page first...
[HTC One X] Domac5:
why I can't flash this recovery trough cmw or twrp? I tried extracting recovery.img from zip and flash it using fastboot too but no luck
[HTC One X] lukes91:
weird you can't flash via fastboot... maybe a wrong download... try to download again :)
[HTC One X] DeeZZ_NuuZZ:
fastboot flash recovery recovery.img then fastboot erase cache and boot into recovery
[HTC One X] teemo:
You cannot do it from cwm, twrp ar any other recovery. You must reboot to bootloader.
[HTC One X] ridderr:
Operation not supported on transport endpoint

Hi Phil. I had to revert to another recovery due to an error during update of CyanogenMod.

Please find attached the log file
[HTC One X] astrokreep:
unable to mount usb

Hi,

I updated to this version in order to install a newer 4.4 rom ( aicp 4.4). All went well until I discovered I cannot mount as USB. Now this wouldn't have been an issue had I been able to copy files with the ROM booted. I flashed back to an earlier version of this recovery and the functionality was restored, I could then mount my device as USB again. When I look at device manager my device is simply listed as "one" and cannot find drivers for it. Anyone else had this issue? Anyone have any idea how to fix this?:confused:ii
[HTC One X] Thant:
[MENTION=3131966]and313[/MENTION] I think have in general section adb installer and I think will work for you
[HTC One X] astrokreep:
still won't pick up my device

OK so I downloaded and installed the drivers. I still can't see my phone on my PC, although in device manager the device now has functioning drivers.
[HTC One X] Thant:
Ok remove all drivers and install only this on [MENTION=3131966]and313[/MENTION]
[HTC One X] astrokreep:
GOTCHA!!!

done and working!!! Thanks for all the help peeps!!!
[HTC One X] guglif:
Mount USB Storage

Hello there guys, I'm on a bit of trouble.

I'll explain: I've installed an update for my kernel but now my phone won't boot (stuck at the cyanogenmod cyrcle), so I wanted to do a wipe and reinstall the rom. Problem is I've just realized I dont have anything in my SD card except for the kernel that wont work, so I'm trying to get USB mount working but it looks like it's not working! My phone is there trying to mount the SD card but after 5 mins my computer still doesn't get it, I know it takes some time but I think it's not working. Is there any way I can put the rom zip or either the old kernel zip (which works) in my SD card or either get USB mount working?

EDIT: Found that I can do ADB sideload but my machine doesnt recognize my phone duh. Can anyone help?

EDIT 2: nevermind, solved! Had to play a bit with drivers but eventually got an older kernel version sideloaded and flashed! Now my phone is back running :)
[HTC One X] lukes91:
it seems a driver issue on pc, as they both work here for me with 5.15.9... try to update drivers or uninstall them and install them again...
[HTC One X] guglif:
well I'm on 6.0.4.something

I'm running an AOSP rom with kitkat... I thought usb mount worked now that HTC released kernel sources...
[HTC One X] lukes91:
but probably the issue is not related to recovery, it's because you have wrong drivers on pc... for example, i had wrong drivers on mine and adb only worked over wifi, than i installed other ones and now it works via USB both in recovery and os... try that...
[HTC One X] guglif:
will do. But I think now it will work... in fact before I replaced drivers adb sideload wasn't working so maybe now that it does USB mount will work too!
[HTC One X] zukenp:
Hi ,i just installed philz_touch_5.15.9-endeavoru ,and cant flash any rom?! I tried ViperX 4.0.7 and after configuration(keyboard,whats apps to erase) its start and get some 6-7 % and restart phone.With BeanStalk is almost same problem. Just to say that i can flash BeanStalk with CWM recovery 6.x.x.x. ,but cant viperx 4.0.7. What i 'm doing wrong?
[HTC One X] Mr Hofs:
The 5.15 is for sense 5/aosp roms and the 6 versions are for kitkat roms. The issue with viper x is probably because you selected full wipe in the aroma. Do a manual wipe in the recovery and select only cache wipe in the aroma, use 5.15 for viper x. For any kitkat take the 6 version of philz.
[HTC One X] zukenp:
Seems that full wipe was problem :) .Tnx.
[HTC One X] kantry123:
hello i've installed pjilz latest released on 3rd feb 2014

i just wanna know does offline charge work?? coz twrp offline doesn't work at all

regards

knatry123
[HTC One X] Mr Hofs:
What do you mean with offline charge. If you mean if the battery charges inside the recovery....then yes. All the philz versions support that.
[HTC One X] Pundy:
Hey everybody.

Has anyone an idea how to get the USB mass storage in recovery with Windows 8.1 to run?

I've tried to use different drivers including the latest HTC driver but nothing helped.

I'm using HTC one X with the latest Philz recovery.
[HTC One X] lukes91:
did you mount sdcard in recovery through mount/unmount menu?
[HTC One X] Pundy:
Hey.

Yes I did it in recovery. I'm using Windows 8.1 x64. With the older clockworkmod 5.8.x.x I have no problems to mount the SD card. Btw. When I boot into cyanogenmod and connect the device with my computer it recognizes the SD card and I can use it as a USB mass storage.
[HTC One X] lukes91:
Weird, here i have win 8.1 x64 and philz 5.15.9 and everything is fine... Try to flash again recovery...

Sent from Somewhere Over The Rainbow...
[HTC One X] Pundy:
I tried it many times before. But I have to use the 6.x.x.x version because I'm running cm11 kitkat on my device.
[HTC One X] Thant:
on version 6.x.x have problem with mounting SD Card from recovery it is discussed many times. the right way is flash 5,15,9 copy what you want to sd card after this flash 6..x.x and insatll cm11.
[HTC One X] lukes91:
Had issues too with 6.x.x

Sent from Somewhere Over The Rainbow...
[HTC One X] Pundy:
Okay guys thank you. Good to know that I'm not the only one with this problem.
[HTC One X] kantry123:
guyz..the latest philz version cannot flash sense based roms and kernels like lyopta

ie the version 6.19.3 version released on 3rd march

any help is apperitiated

i think the latest version is only for cm11..!

or an ideas y is this happening?

regards

kantry123