yashsingh1/xdaforums huggingface dataset:
[HTC One X] Thunder07:
I DONT KNOW WHY I DO THIS TO MYSELF!!!

during every exam period I always get a moment of pure innovation,

Unfortunately for my sake...it's usually not study exam related....

this last one was about my promised recovery KL flasher... i was thinking of an easy way to integrate it into the recovery....

and the simple answer was.... NOT to integrate but rather make it separate... thus portable... thus i dont need the support of a recovery dev or so to add it...

Anyway... i proof of concept wasn't enough... and ended up making a fully functional 'thing'.

let call it an early beta for now!

And with that I present to you, AromaFM KL Flasher, http://d-h.st/F4U,

It's rather simple to use,

1) run it like any other zip in the recovery... And Aroma File Manager will start....

2) look for the zip of kernel you'd like to flash & click on it... the rest is self explanatory.

Just make sure you have /system or /data mounted before trying to install to it.

3) this will only install the kernel but NOT the modules... so flash that zip normally though the recovery.

Current Function,

-Flash Boot.img from Zip

Future Plans,

- Flash Boot.img from any directory not just Zip

- Automount Flash location

- Install Modules (might be a bit tricky.. but then again... I'm Me :))

- Clean up /*/boot/ directory

- display installed kernel(s)

[MENTION=2528998]Thant[/MENTION]

if you're still on the hox :p
[HTC One X] Thunder07:
you replace the zImage and not the boot.img
[HTC One X] dragonesdenano:
Here I m. Sorry for been late...amazing Moody. Great work here amigo.

So now hox has Sense 5 and NoPcKernel. Just a perfect day.:thumbup::)

Enviado desde mi HTC One usando Tapatalk 2
[HTC One X] Thunder07:
though im not completely happy with my current progress,

i figured people would appreciate the timing :)
[HTC One X] Thunder07:
Some teaser as I fall asleep :)

Sent from my HTC One X
[HTC One X] MacSeoin:
Thunder does it again! Can't wait for the release.
[HTC One X] Thunder07:
can anyone confirm this is correct by trying it

my system is always mounted as rw and i get device busy so i cant tell.

then undo it by
[HTC One X] ExoticMe:
thunder this is amazing thank u
[HTC One X] eyosen:
Just tested. Works as indicated.
[HTC One X] jshields:
Oh my God what an absolute legend 5* you are amazing
[HTC One X] JClikesVIDEOGAMES:
Really fine work, Thunder
[HTC One X] drali500:
I just came from work ... Very exhausted... I didn't get but will read this tomorrow... All I can say now is something awesome is coming.
[HTC One X] MRobbo80:
Can not wait

Really looking forward to this, great alternative to S-OFF, well done m8 ! :good:
[HTC One X] vua777:
Amazing solution!

Phase 1: Boot Kernel Through Kexec: successful!

WAITING FOR

Phase 2: Multi boot Android roms

Thanks a lot !
[HTC One X] joewong1991:
Wow wow thunder you are the man you got it going :D

I was going to pm you on progress but then found this ahaha awesome stuff pal
[HTC One X] Thunder07:
just to let you know guys...

im currently dying trying to get this to work, once its done Phase 1 would be complete

http://xdaforums.com/showthread.php?t=2418680
[HTC One X] Thunder07:
ok i couldn't get past the obstacle, so i had to relay on someone else code for this section,

currently requested permission and will post the app as soon as i get it.
[HTC One X] vaykossil:
What would the app do ? Flashing kernel through the Rom ?
[HTC One X] Thunder07:
allow the user to select the module zip,

at which it will extract the kernel and create zImage & ramdisk from it, and set it as default,

it will then flash the modules and reboot into the new kernel.

Edit:

later ill also update the app so that user can swap just the zimage or ramdisk without the other one.

so you can easy flash a kernel while keeping rom ramdisk.
[HTC One X] toolhas4degrees:
On htc one, before s-off was available torx or hestheone64 had a script that would flash the kernel, I no longer use my one x, but if you contact those devs they might have an easier solution for this.
[HTC One X] Thunder07:
There are no easier solutions.

also if im not mistaken,

the HTC One can flash the kernel from the recovery with an unlocked bootloader.. we can't.

Sent from my HTC One X
[HTC One X] Thunder07:
I've test it with faux kernel...

Which one are you testing?

Also after clicking (selecting) the zip...

Do you get a new menu asking you to choose flash location & boot.img..

Note... You must click on the zip and NOT select it.

Edit:

Also.. does the Aroma File Manager even start??

as the problem might be with the binary i compiled vs the recovery you're using...

A.K.A.. I've compiled using android 4.4.2(Kitkat) & Your recovery.. is using 4.2.2 (JB).

Send From My HTC One X
[HTC One X] cappuccina:
Hi Thunder!

Thanks for the new method and your efforts.

Unfortunately I have the same issue.

Aroma File Manager starts. Hints message comes up to explain the functions. I select SD Card location and tap on the rom.zip, another screen comes to choose flash location and boot.img.

I select boot.img and tap ok and it redirects me to the file manager as RohinZaraki mentioned.

I tried with a Rom.zip, a modules zip for Kernel flasher and Faux kernel

If you Just tap OK without selecting the boot.img ( I know it doesn't make sense but I once just forgot to tap it. The whole recovery freezes and I have to hard reboot.)

I'm using TWRP 2.7.0 recovery from audahadi. Trying after a clean flash of AICP rom.

Will flash a 'normal' kernel flasher zip for now to get my phone to boot ;)

Thanks again, if you need more info let me know!
[HTC One X] Thunder07:
ummm....

i might have been a bit lazy... and didn't include a success msg :p but no error should mean success

but i did add a fail msg... except for when you choose no kernel (as you mentioned) :p

you can confirm the flash yourself.. but opening /sdcard/boot/

a folder called KRF should exist, stands for Kernel Recovery Flash

also.. have you tried booting the phone after the flash attempt?

Finally,

KL looks for a kernel in this sequence, /system,/data/sdcard

so if you have a kernel in /system or /data the boot sequence wont make it to boot from /sdcard
[HTC One X] cappuccina:
OK,

actually I didn't try to boot after the flash attempt as I thought id didn't work.

I flash slimkat kernel with kernel flasher recovery zip.

I'm installing all my apps now.

I checked and I don't have a folder 'boot' in /sdcard BUT I have one in /data

So now i have in /data/boot a 'Kernels' and a 'KRF' Folder. And in the KRF folder I have the 4 files from aicp boot.img

So i guess it DID work eventually?

Should I delete the Kernels folder and try to boot the phone again?
[HTC One X] Thunder07:
try this first..

adb shell

cat /data/boot/*

make sure the /data/boot/kernel & /data/boot/ramdisk are refering to KRF...

i guess since flashed slimkat you've over written /data/boot/kernel and /data/boot/ramdisk

if they're not.. you'd need to reinstall it through the recovery.
[HTC One X] paulh1978:
Hi thunder first off thanks for continually evolving your flasher. I can get it to work fine using sdcard method but when I try system or data way phone keeps hanging at HTC screen.
[HTC One X] Thunder07:
my best guess is that you didnt mount /data or /system before attempting the flash??
[HTC One X] cappuccina:
ok, i had to sleep. it was too late ;)

so i checked and it referred to Slim kernel and ramdisk.

so i will try to reinstall it.

I cleared kernel and ramdisk through the app.

Made sure i mounted Data in recovery. Flashed your new ZIP. Chose the rom.zip selected boot.img pressed OK.

It directly went back to the filemanager. So I just exited from there.(seems weird for me)

I checked with built in recovery file manager. No Kernels folder in /data/boot (cause i cleared it before) and in KRF folder the files for AICP

But doesn't boot. Stays at HTC splashscreen and when pressing the power button it vibrates twice but doesn't reboot.

Had to press power and volume to come to bootlaoder.

After that i tried to install in sdcard.

Same procedure as before. chose zip, selected sdcard location and boot.img. It redirects to file manager and I could directly now see a Folder /boot in sdcard. Exited from File manager. Restart.

And this worked! :)

I will not try with system partition as i have not enough time and I guess it would be as paulh1978 said.

I'll just leave it for now. Thanks for this great invention again! Hope you can make it even better! GREAT JOB!

And Thanks for your help!
[HTC One X] Thunder07:
(y) cool, just to make sure you delete delete /data/boot right?

Otherwise you're booting from there.

Edit:

Sorry, just woke up...

Didn't read the entire post earlier thanks.

Edit2:

Before the sdcard flash,

Did you delete /data/boot?

Also it's a bit odd that it freezes when using the /data...

As that's the one I usually use :/

Anyone good to know it works (y)

Send From My HTC One X
[HTC One X] paulh1978:
Hi thunder. Yes deleted data/boot and system/boot folders flashed boot.omg through aroma fm still unable to boot from system or data,same result as cappuccino. Booted from sdcard again,checked with root explorer and everything was in place in system and data partition. Just wondering are you using philz recovery or twrp
[HTC One X] Thunder07:
I'm using the latest Philz,

Ummm... Not entirely sure what's wrong yet... I know the earlier builds that I didn't even release caused this error but it should be fixed now.

Also... Since it boots using sdcard..

It's probably not a recovery issue :/

Send From My HTC One X
[HTC One X] paulh1978:
Only reason I asked about recovery is I don't think mounting /system and /data always sticks with twrp as it took quite a few attempts to get anything in the data/boot and system/boot folders. When I get back near a computer I'll try latest philz see if that makes a difference.
[HTC One X] Thunder07:
Cool,

try navigating to /system & /data through aromaFM to see if they have been mounted...

note though.. the latest Philz doesnt have adb working (well it doesnt work on Ubuntu haven't tried windows... but i guess its a recovery error)
[HTC One X] paulh1978:
Thanks for letting me know will report back later.
[HTC One X] paulh1978:
Hi thunder just tried with philz recovery I get the krf folder and files on data and system but it only seems to load up the files from sdcard when installing the kernel.

Edit- just checked files in data/boot and system/boot against sdcard,don't know if it helps but permissions are different for sdcard they are rwxrwx and for data and system they are only rwrr.
[HTC One X] Thunder07:
i'm aware of that..

you see the sdcard is formatted ntfs which isn't a linux format... thus it doesnt actually has rwx(read/write/execute) permissions...

thus by default linux(android/recovery) gives them full permission rwx...

with that said.... to be able to use them to boot android we only need read permission and thats given...

with that said.. again this doesnt explain why its not working...

what kernel are you trying to flash??

also would you be able to copy the /data/boot/ folder to the /sdcard (careful no to overwrite /sdcard/boot) zip them and upload them here?

finally... the only thing that might explain this is...

i might be using a different version of KL-Zeus.img (though i dont really recall)..

so with that... can you backup boot.img through the recovery (Philz has a custom section to allow backing up just boot.img) and also uploading that?

ill compare it to mine.
[HTC One X] paulh1978:
Here you go both are in the zip
[HTC One X] Thant:
[MENTION=618483]Thunder07[/MENTION] I am still with HOX but I have a lot of work and I don't have time to play with the phone. When I have time I will try the new file aroma manager and KF, and one question is this new method will work with JB 4.2.2?
[HTC One X] Thunder07:
generally speaking binaries tend to be version independent(specially statically linked ones) to a certain extent..

and AromaFM is a binary so it should be compatible with most updates( 'probably' back to GB :p ).

They're a match... So it's not a recovery or KL thing, since we're both using the same versions :/

So it might be a xm kernel thing(though that doesn't really make much sense)...

Also I never knew Xmister resumed his work.. so i might try that kernel myself later..

other than that i'm afraid it'll have to wait until after the exams :(
[HTC One X] paulh1978:
Not to worry still works via sdcard so is still good to use. Xm has got a new kernel for sense 5 and one with cm11 ramdisk as well but not been updated for a while.
[HTC One X] Thunder07:
it's 2:06AM... and found the problem :/

It's in KL-Zeus itself... the script was mounting sdcard but not system or data... thus it only booted from /sdcard

i also had a folder on the sdcard which i was booting of... which i never knew exist :p
[HTC One X] paulh1978:
Wow thunder you really are like a dog with a bone you never give up ;) thanks for all your effort.
[HTC One X] Thunder07:
my OCD for unresolved things :p

but.. to clear my conscious when i woke up this morning...

I tested your permission theory... and it was the real culprit :p
[HTC One X] paulh1978:
So if I manually changed permissions to be executable I should be able to get the kernel to boot from the data or system partition :D
[HTC One X] Thunder07:
you just need to add write permission, no need for executable, to the boot folder itself...

I'm testing that right now.. check this post in 10mins.

Edit:

grrr.... Back to square 1.

The kernel boots fine if installed through android app... but not so when done through aroma recovery!!
[HTC One X] paulh1978:
Would it worth flashing the kexek IMG before the boot.IMG as happens when using a recovery IMG made with the app.

Edit- but all via the aroma FM.
[HTC One X] Thunder07:
kexec kernel is only ever flashed through fastboot.

Edit:

there is only one difference between android app and recovery app...

the naming convension... e.g

if i flash a zip through;

Android:	/data/boot/Kernels/kk-faux-14m/boot.img-zimage

Recovery(your using):	/data/boot/KRF/kk-faux-14m.zip-zimage

Recovery-update(im using):	/data/boot/KRF/kk-faux-14m.zip/boot.img-zimage

the .zip-image extension should make no differene...

but i could see app confusing /kk-faux-14m.zip/ for a file instead of a directory.

so thats gonna be my next test :/

[MENTION=4339158]paulh1978[/MENTION]

echo "$klloc/boot/Kernels/$ZIP/boot.img-zimage">$klloc/boot/kernel

echo "$klloc/boot/Kernels/$ZIP/boot.img-ramdisk.gz">$klloc/boot/ramdisk

echo "$klloc/boot/Kernels/$ZIP/boot.img-zImage">$klloc/boot/kernel

echo "$klloc/boot/Kernels/$ZIP/boot.img-ramdisk.gz">$klloc/boot/ramdisk

can you spot the difference *facepalm* x infinity!!!

and yes.. im not joking!!

I can confirm it has been fixed...

but since im in the middle of an update... ill finish that 1st.
[HTC One X] paulh1978:
Cant wait for next update :good:
[HTC One X] Thunder07:
As Promised,

AromaFM-KL Flasher beta 2, http://d-h.st/It1,

Current Function,

-Flash Boot.img from Zip

- Flash Boot.img from any directory not just Zip

- Automount Flash location

- Install Modules(if you've the time... try an entire ROM)

Edit:

Beta3 http://d-h.st/hkw

-Fixed direct boot.img flashing
[HTC One X] cappuccina:
WOW Thunder you really did an AWESOME job on this one.

Made a nandroid backup and wiped everything except sdcard.

Flashed your AromaFM-KL Flasher zip and chose slimkat rom.zip

I went with data for boot.img and said yes to flashing the modules.

Thanks for making a success message...;)

After that I thought it froze but then the second success message for flashing the zip poped up! :D

So after that i just flashed gapps and rebooted. And what should I say.....

:D IT WORKED :D the phone booted up with no problems and i am now installing my apps!

GREAT JOB! Thanks for making this possible and sacrificing all those sleepless nights I am sure you had, and where you probably should have been studying ;)
[HTC One X] and313:
Works. Just flashed faux kernel on cm11 with modules... Great work.

I also flasged a rom (aicp) and it took a few reboots to actually boot. Boot eventually it did. So i guess its a succes
[HTC One X] Thant:
[MENTION=618483]Thunder07[/MENTION]

I don't have time to check and play with new aroma. Still need first time to flash KL-Zeus.img via fastboot???? Because before 3 week I wiped the phone full and I didn't flash the KL-Zeus.img and didn't install kernel lighter.apk because no new kernel development but now I think to install and play with lyapota kernel to chek inteliplug and other:)
[HTC One X] Thunder07:
Thanks for testing :)

But now what will I do with my summer :( :confused:

yes, KL-Zeus.img is incharge of loading kernels installed though the android/recovery app.

so after flashing KL-Zeus.img, boot into recovery & run the aroma app and choose the kernel zip to install & reboot.

Just heads up everyone,

I've noticed that sometime though.. i get stuck in bootloops after kernel updates... not because of kernel.. but because you need to fastboot erase cache...

the problem is.. even recovery is not accessible during this and you'd need a computer to fix it.

Though I never tried this.. but if you format /cache after each kernel update.. it might prevent this.
[HTC One X] teemo:
Just give us s-off, should keep you busy a day or two :D No seriously, I don't care about that.

But its finally time for me to try out you Lighter, seems it has matured enough now.

Thanks a ton for doing this. Awesome work!
[HTC One X] bilbonotry:
So we must always flash KL-Zeus.img with fastboot before using your aroma app in recovery ? If yes, I don't really get the point of this app if we need fastboot.

Please enlighten me. ?

Maybe I didn't understand

Envoyé de mon One X en utilisant Tapatalk
[HTC One X] cappuccina:
No you only need to flash this once in fastboot. I haven't used it in months. :D

But Thunder mentioned that he had bootloops sometimes (testing his new aroma) and the only solution for him was to erase cache in fastboot. For that you would need a PC.

[MENTION=618483]Thunder07[/MENTION]

I tried to flash lyapota's kernel (repacked before with the app) and after boot I had android.process.acore? FC.

Don't know if it is relevant or not.

Well I cleared kernel and ramdisk with the app and flashed via app again the recovery zip.

After flashing the modules in recovery it booted fine without fc.

Good you changed the folder used by aroma to the same used by the app.

So when flashing a kernel that needs to be repacked we still need the app to do it. Right?

Cause when trying to flash the recovery zips made with the app,with the aroma flasher, it will use the not repacked img inside it?

Is it Wrong? could you please clarify it a bit.

Or I just made something wrong and forgot to wipe caches or something... ;)

sent from my slimmed Kitty Kat
[HTC One X] Thunder07:
well yes and no...

if you have a repacked.img.. you can flash that directly with the app...

but if you made a repeak with the app... the boot.img included in the zip is the original(unpacked one)...

ill probably update the app to include both.

also,

Ill add kernel/ramdisk flash options to aroma over the break.

but that's definitely over the break... my obsession was over aroma and it works well.. adding these options shouldn't be too hard later.

as for the bootloops...

I've always got them.. even when flashing kernels with fastboot...

just thought to mention it before someone starts panicking about not being able to access the recovery.

of course ;)
[HTC One X] and313:
It would be really great for the next update to add a auto option to wipe cache. I do it everytime but some people might have problems. Other then that its perfect
[HTC One X] cappuccina:
So as I thought. Thanks for clarifying.

Take your time and concentrate on other things. ;)

It's working great now (and had before for me, too)

Really appreciate your efforts in this. Great job!

sent from my slimmed Kitty Kat
[HTC One X] Thunder07:
how does this picture below make you feel...(if you recognise)

but don't get too excited yet...

there is a hardware limitation which might prevent this from ever fully working!!

Thats the plan :)
[HTC One X] p70shooter:
Oh my days :D:) To late, I'm excited already :D
[HTC One X] Thant:
You are the best when I have time the first thing is to flash KL-Zeus.img and try with lyapota kernel inteliplug. I hope will be after two tree days:good: and I am too excited for the multy boot and it will be posible to boot sense and AOSP rom because on the limitation of the KL-Zeus.img for sense and aosp they are different on the same time or will be limited only to 2 sense roms or 2-3 aosp roms???
[HTC One X] Thunder07:
no the limitation is in the recovery partition size...

You see MultiROM is made up of 2 parts....

Kernel Side, to boot the ROM.. works fine... kind of, can't test it because of the 2nd part :/

Recovery Side, Modified Recovery To Allow You to flash more ROMs without flashing the default ROM...

I already have them both built...

but the problem is the recovery partition is only 8MB big... While the recovery img is 11MB.... i guess you can see the problem...

I cant flash the recovery to flash a 2nd ROM...

Anyways, comes the break, ill have a look at them and see what i can do...

but eitherway... my initial intention was never to use the modded recovery... but instead to implement that part into AROMA...

that way the recovery can stay independent from the whole thing.. and i can update AROMA without having to worry about the recovery.

but to answer your question.. you can boot as many roms as your sdcard can hold.
[HTC One X] Thant:
Maybe if you can change the script for the 2nd rom where to be installed, the first rom will be on the main partition but if you start second rom the recovery(or if it possible to be aroma installer program like AromaFM-KL)and you run the rom.zip from this aroma program must to change the partition where to write the second rom in our case on sd card. When you start the device maybe you must to go directly on program for multy boot and ack from where to start the rom from main partition or from folder on sd card if this is possible you will don't have the limitation for numbers of roms.:)
[HTC One X] Thunder07:
Don't worry about it too much...

If I'm motivated enough I'll have earth spinning backwards if that'll get it to work :D

Send From My HTC One X
[HTC One X] tim071286:
Excellent work [MENTION=618483]Thunder07[/MENTION] thank you for the time you have taken to do this development.

First time user of your kernel.

Flashed Zeus boot.img

fastboot erase cache

Ran your aroma zip in TWRP 2.7 recovery

Selected full omnirom zip latest nightly

Flashed ROM zip

Flashed Gapps

wipe cache/dalvik, reboot

I did briefly get black screen and didnt know how long to wait... I restarted and waited a little longer too see the Omnirom boot logo :good:

great work :highfive:

Edit: seems I need to reboot 3 times until it starts the kernel correctly otherwise I see black screen and nothing boots.
[HTC One X] kantry123:
Ya..that happened to me too

I needed to force restart it

And also one thing

During those reboots we can't boot to recovery as well

Thanks it booted the 4th time
[HTC One X] cappuccina:
Yes that's normal :)

usually at least after the 5th restart it works, but that's the worst case. ..

When you look at the op then it's also stated there.

Mostly it happens after first flash.

sent from my slimmed Kitty Kat