yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S II SGH-T989] sinfulgray:
Try badass battery stats on the play store it monitors which apps use the batter and by how such...very good battery management app
[HTC One S] fipsib:
Hey Guys,

since I heard many questions lately concerning flashing a boot.img onto the One S I decided to give you a small tutorial! (which should also work on any other device with bootloadermode)

If you have fastboot already installed on your PC it's very quick & easy!

Pls be aware that this could damage your phone & I'm not responsible for this. so only do this if you really feel comfortable with it & you know about the risks!

Here you go!

Quick & easy!

When I helped please press the thanks button!

If you have any suggestions to make it even easier of found a mistake, please tell me, it's already very late in Germany ;)

BE AWARE THAT I'M NOT RESPONSIBLE IF IT DOESN'T WORK OR BREAKS YOUR PHONE! THIS IS JUST THE WAY I UPDATE THE BOOT.IMG ON MY PHONE!
[HTC One S] fipsib:
Installing ADB and Fastboot

It's actually pretty easy!

When I helped please press the thanks button!
[HTC One S] kurniawan77:
Sticky..
[HTC One S] Inferi0r:
Here are links to usb drivers only and adb/fastboot runtimes only.
[HTC One S] fipsib:
Thank you, will implement them later!

[edit] implemented
[HTC One S] nicxus:
Nice write up so cleanly written.
[HTC One S] zaxondis:
Thanks!

Thanks for posting!

Anyone have any sweet boot images they want to share? I'll see what I can dig up for our screen size and post some myself soon.
[HTC One S] MadJoe:
Excellent post, thank you. You could also mention the easiest way to boot into bootloader: a root enabled app like Quick Boot, or even Titanium Backup has the option.
[HTC One S] qwerty warrior:
oh finally thank you ive been trying to find how to do this

i wish HTC phones were easy as samsung phones
[HTC One S] ri123:
So boot.img is basically a kernel?
[HTC One S] fipsib:
basically it contains the kernel & the ramdisk. But there also are some other things:

Further information can be found

HERE

& Here

[edit] added this to the OP
[HTC One S] AlxMAX:
You should consider adding an extra 3.5 step like this:

fastboot boot boot.img

This step is meant to test the kernel & ramdisk before flashing it. Of course, the phone might not be fully functional because the modules in /system/lib/modules might not be paired with the kernel in boot.img. But at least you can see your phone booting!
[HTC One S] iCaptivate:
Why do I have to do that? Can't I just flash the kernel through TWRP or CWM?
[HTC One S] fipsib:
You need to do this due to the restrictions that are given with S-On.

The team behind TWRP somehow found a way to flash the boot.img sometimes. But for me (or my device) this didn't work.
[HTC One S] qwerty warrior:
this is very confusing to me

i wish if there was an easier way
[HTC One S] fipsib:
I don't think that this is necessary as it will only confuse people not so familliar with the matter, but thank you for your input :)
[HTC One S] cualla84:
a doubt, I have a friend who wants to put the rom CM9, the question you have is: how to flash the boot.img fastboot in ubuntu?

Thanks!

שנשלח הוז שלי באמצעות Tapatalk2
[HTC One S] fipsib:
should be exactly the same, only with the difference that the Android SDK should be located at

~/android_sdk/platform-tools/

or

~/bin/
[HTC One S] qwerty warrior:
i have a problem with step 5

i dont have a folder called "platform-tools"

i got two folders

platform

and

tools
[HTC One S] fipsib:
while installing the android sdk did you download "tools", too?
[HTC One S] LalyGirl:
I flashed trickdroid rom but I can't flash the boot.img.

The device is working, but does it really necessary to flash the boot file ? and why?
[HTC One S] fipsib:
as written on the last pages, it contains the ramdisk & the kernel which are some kind of very important for the system to run properly,.. (rrestrictions given by S-ON prevent the flashing of the boot.img normally)

on some devices the TWRP does flash the boot.img just fine, on others is doesnt, you can check whether your boot.img was flashed when you compare the date & time in Kernvel version with the date & time given in build date. when they appear to be close together then it should have been flashed just fine

as trickdroid is based on sense i actually dont know if you really need to flash it as I dont know what he changed in the boot.img,... so if torxx tells you to flash it better flash it, if he doenst, then there should be no need to flash it

// just read that he says that you should make sure that you flashed it,.. so better do it
[HTC One S] did91505:
I have a question, about boot.img

The question I have for someone in this thread, is to load a new boot.img lets say, for example a stock roms boot.img... Can you do it without the phone being not rooted.

and if so can the same thing be done with flashing the radio.img.

Reason im asking is because Ive gotten 3 replacements of the htc one s my first one was 1.73 I R rooted worked for a good solid month and then it ceased to live, last phone I got had that Airplane mode wifi/data glitch this one just wont turn off the airplane mode, when im on wifi with no data.

--

Can it be reflashed on a stock device or is the Master Reset the only way it can reload its self on the Boot and Radio Img?
[HTC One S] seangprice:
One question that I can't seem to find an answer to is when do you flash the Boot.img? Say I wanted to flash a new ROM, do I flash the ROM first then the new boot.img, or Boot.img first then the new ROM? What order does this critical process fall into?
[HTC One S] fipsib:
that doesn't matter as long as you don't boot in between (which I would not suggest in any of the 2 directions/orders ;))
[HTC One S] did91505:
Well, I re read that last post.

It kinda made no sense, My phone is stock not rooted, can I still use adb to push the radio, If the radio seems to bootloop and or freeze, Its worth a try reflashing the radio that can be found here instead of the one that comes Oem.

Main question, Can the Boot.Img be pushed through adb if u do not have your phone rooted.
[HTC One S] techenthusiast:
Thanks for the great guide, always good to have something to look back to.
[HTC One S] slokii:
Which boot.img should a flash?

Unlocked via HTCdev, then 4EXT..?

Thank you for clarification.
[HTC One S] soutieslak:
Have a look in the .ZIP of the Kernel or ROM that you want... you should find a boot.img in there, copy that and put that one on! Thats what I did and it worked! HTC Sensation!

BTW thanks for the awesome guide!!! Helped me a lot fipsib :good:
[HTC One S] Mooncalled:
Stock RUU

Stock RUU the same as a boot image? I want to unroot my phone and the only way to do that is to flash a "recovery image" that is the stock RUU. Or is the stock boot image pulled from a stock RUU and renamed recovery?

Coming from the HTC HD2 to the One S was more of a challange then I expected. I just want to have my phone rooted, but sadly, I can't get official updates unless my phone is unrooted. Meh. I just may hang the whole rooted stock phone and go with a nice solid CM build if I can't get my head around this unrooting thing.
[HTC One S] fipsib:
if you want to run a RUU afaik you don't need to flash the boot.img,... simply connect your phone to the pc & run the RUU
[HTC One S] maxdown:
hi ,i downloaded both SDK and adb but it is not a install file .exe ,it is just a a zip file,then i don't see c:\android folder after extract it. Pls help
[HTC One S] Darknites:
Just use the All-In-One Toolkit, its much easier that way or if you rooted already use Flash Image GUI.
[HTC One S] Kashif.Ali:
;)

basically it contains the kernel & the ramdisk
[HTC One S] yduck:
it is more than just the kernel. as mentioned before, it contains the kernel and ramdisk

---------- Post added at 08:26 PM ---------- Previous post was at 08:13 PM ----------

I am confused here. what's the difference between a ROM and the boot.img? I know that the ROM is the android os, and it should contain the kernel. but boot.img also contains the kernel. so what's the difference?
[HTC One S] fipsib:
Boot.img is just a (small) part of the Rom
[HTC One S] michaelmab88:
I have tried many different drivers for windows 8 pro x64 and none of them seem to work with fastboot. ADB works perfectly, but fastboot does not. Has anyone gotten fastboot working on windows 8 pro x64?
[HTC One S] salutcemoi:
I use TWRP to flash roms

If I want to flash CM10 (or any other ROM), do I have to flash boot.img ?

And once I flash the boot.img, will ue remain in my phone? (meaning I wont have to flash it everytime I want to flash a new ROM)
[HTC One S] fipsib:
nope, didn't try W8 yet

as the boot.img contains the kernel you need keep it up-to-date with your rom. Otherwise you will encounter problems
[HTC One S] salutcemoi:
Thanks

My Hboot is 1.13 so yeah looks like an extra step for me

---------- Post added at 05:46 PM ---------- Previous post was at 04:47 PM ----------

Ok, I have a question about post 2 :

A few days ago I installed the SDK on my PC and extracted it; the adb and fastboot files are already there (in SDK/platform tools)

Do I need to run the commands afterwards ?

thanks
[HTC One S] salutcemoi:
Nevermind

I just found the Flash Image GUI app in the Play Store

I flashes the Kernel for the user :D

I tested it and it works !

Thanked your original post fipsib :good:
[HTC One S] Tyler DeLarge:
hi why it turn me Waiting for device?

if i do sudo fastboot devices it find my phone but if i move with :cd in the folder which contains boot.img and do it fastboot flash boot.img it turn me winting for device.

in Widows SDK manager doesn't work and i can do nothing

he Phone works only on recoery and bootloader D:
[HTC One S] reeper250:
I have downloaded and installed all the necessary files/programs including the SDK stuff but when I reboot into bootloader with Fastboot USB the phone disconnects from the PC so I cannot flash the boot.img :(

The weird thing is, it worked before I reformatted my PC... Frustrating...
[HTC One S] mustardman29:
Do these instructions still apply if I am S-OFF?

I have Htc one s4, HBOOT v1.13, and S-OFF. Do I still need to flash the boot.img separately or will it all get flashed in TWRP when I install a custom ROM?
[HTC One S] Fofff:
You don't need to flash the boot IMG separately if you are s-off. It is flashed automatically from recovery when you flash a new ROM/kernel
[HTC One S] memorito:
Hi, just two things I wanted to mention/ask.

Maybe add as a note that the boot.img should be found inside the ROM.zip file. And, does this have to be done with every subsequent ROM flash? Or is it just once after the HTCdev unlock? Thanks!

- Memo
[HTC One S] BackSlash_cu:
Half bricked One S :(

Hi, I'll explain my particular case...

I had CM 10.1 working fine on my One S. To unlock it I should go back to the stock firmware ( T-Mobile ).

After many trys and fails my phono now it's on this stage:

.Keep looping on CyanogenMod loadscreen

.At least I can put it on fastboot mode.

my questions to the experts:

What should I do to install the Stock firmware from fastboot? :eek: ???

I have this RUU: RUU_Ville_U_TMOUS_1.84.531.2_R2_Radio_0.16.31501S.16_2_10.22.31501S.10L_release_263233_signed

it's correct for my phone? how to check this?

thanks in advice
[HTC One S] zumri:
Hi friend I need your help

I was on htc stock rock I was bootloader unlocked it said Tampered and Unlocked and I was S-Off I had CWM installed I found out that if I fastboot boot.img i could flash custom roms so I downloaded a compatible Cyanogen Mod rom to my htc and then I followed your instructions to fastboot all went well but at the end the device didnt restart it got stuck in the htc screen where it says this build is only for some purpose and if we use it other than that some legal bla bla then i powered off and now my phone wouldnt start is my device bricked pls help me what can i do :(
[HTC One S] Flashalot:
It may be dead leave it on the charger then go in to your recovery and wipe davik cache and cache

And reboot and see if that works
[HTC One S] zumri:
well friend it has got charge but when i try to enter in to the recovery mode it doesnt work only the softkey lights keep on blinking
[HTC One S] Flashalot:
Hold the power button let till the softkey lights die out then try and goin to the recovery and flash a different Rom
[HTC One S] zumri:
Well friend i tried as u said but it gets stuck at this screen n then it just switches off
[HTC One S] Flashalot:
Are you holding the power button and vol down?
[HTC One S] rc420head:
Let me just ask did you flash the rom in recovery or just fastboot boot.img?
[HTC One S] Flashalot:
Well that should have been the first thing I asked

But he can't be bricked just soft bricked (bootloop )
[HTC One S] rc420head:
Yeah he's definitely not bricked
[HTC One S] zumri:
I kept the phone plugged in charge the whole night and in the morning i tried many key combination power and volume up power and volume down power and volume up and down ultimately i was able to get to recovery and flashed CM 10.2 thanx for your reply friends
[HTC One S] huzefaonline:
hi, while flashing the new boot.img file the cmd says okay once, next it says writing boot and then failed <remote:not allowed>

whats wrong here?
[HTC One S] rc420head:
Your bootloader isn't unlocked?

Sent from my T-Mobile myTouch Q using Xparent Red Tapatalk 2
[HTC One S] huzefaonline:
Yeah my bootloader is locked, s-offed. can i flash using twrp?
[HTC One S] rc420head:
If your s-off then twrp is fine no need to fastboot it, but still doesn't explain the error.

Sent from my T-Mobile myTouch Q using Xparent Red Tapatalk 2
[HTC One S] huzefaonline:
how can i do it with twrp? any step by step guide? or you could tell me step
[HTC One S] rc420head:
What exactly are you trying to do?

If you flashed a new rom then the boot.img flashed during that.

If your trying to add a new boot.img on the current rom you have then it would need to be in a Flashable zip. Or if your phone is booting you can use an app called flash image gui there's a paid one in play store or an older one on xda in the one s themes and mods thread

Sent from my T-Mobile myTouch Q using Xparent Red Tapatalk 2
[HTC One S] huzefaonline:
ok. yeah i trying to add a new boot.img file in the current rom. let me add it to a zip and see if i can flash it using twrp
[HTC One S] choosymoron:
Can i use this method?

I have a HTC Desire X, planning to change the ROM and have to flash a bot.img can i use the HTC All in 1 Kit by Hasoon2000 which has an option of installing a kernel with 1 click and then select the img file and done ? Is this the right method?
[HTC One S] tivofool:
Use [TOOL] [10.14.13] WinDroid HTC Desire X Toolkit v2.1 | Unlock | Root | Flash |

http://xdaforums.com/showthread.php?t=2462567
[HTC One S] bremair:
Hi I flashed the ViperXL ROM and now have to flash the boot.img manually. I'm R-On and using TWRP. I did it as u discribe in the first post but it didn't work. Does it depend on "S-ON" and step 3.5? I didn't get that.
[HTC One S] antonavy:
How do you solve the following problem:

c:\Ace\ace-tools>fastboot flash boot boot.IMG

sending 'boot' (3038 KB)...

OKAY [ 0.516s]

writing 'boot'...

FAILED (remote: not allowed)

finished. total time: 0.516s

c:\Ace\ace-tools>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 0.85.0024

(bootloader) version-baseband: 26.17.14.11_M

(bootloader) version-cpld: None

(bootloader) version-microp: 0438

(bootloader) version-main: 3.12.405.1

(bootloader) serialno: HT0BTRX05342

(bootloader) imei: 352668044118238

(bootloader) product: ace

(bootloader) platform: HBOOT-7230

(bootloader) modelid: PD9810000

(bootloader) cidnum: 11111111

(bootloader) battery-status: good

(bootloader) battery-voltage: 3916mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: a3d4fa0f

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

(bootloader) region-id: 0

all: Done!

finished. total time: 0.016s

HTC Desire HD.

Thank you.
[HTC One S] derkleinebroicher:
Have you really written IMG in big letters?
[HTC One S] ramfan43:
Yeah I have Windows 8.1 running on my desktop computer and fastboot doesn't work. I wish there was a solution for this problem it sucks that you download an update for windows and it makes fastboot no longer work. Luckily I have a laptop running Windows 7 and fastboot still works on windows 7. ?
[HTC One S] antonavy:
I'm running windows 8 here, probably it's causing the fastboot to fail too. Thank you!

Regarding the "IMG" no, it's not in big letters, but i tried both ways. Is windows command prompt case-sensitive? I'm not sure.

I have a feeling though that I rooted and s-off and unlocked my phone on windows 8... maybe it is one of the updates...
[HTC One S] Franivelius:
I've got a problem guys. My device (Sony Xperia Sola) is rooted but Fastboot tels me its not and wont let me blash boot.img (which I need in order to install CM11). I know for sure the device is rooted. Why is fastboot not working?

I am desperate as I spent the last five hours trying to install CM11 on this phone LOL.

SOLVED: Just had to write the unlocking lines again at fastboot before attemting to flash boot.img.
[HTC One S] morjul:
Hi! Please help me!

By mistake flash "geeb_KK_4-4_bootloader_only.zip" (optimus g E975) in my device F180l. (variants optimus G) with contein files: aboot.img, sbl2.img and sbl3.img. And now only run fastboot.

Now, with my files the bootloeader F180l, Follow the commands?:

> fastboot erase boot

> fastboot flash bootloader bootloader.aboot.img

> fastboot flash bootloader bootloader.sbl2.img

> fastboot flash bootloader bootloader.sbl3.img

> fastboot reboot-bootloader

Sorry for post in their thread.

PS: zip "geeb_KK_4-4_bootloader_only.zip" attachment, just in case.

Thank very much!

Regards
[HTC One S] Rapier:
This thread is in HTC One S dev forum. We cannot properly give help for other devices since procedures, files and even some commands might differ. We are not familiar with all devices

Sent from nowhere over the air...
[HTC One S] Synthstryker:
Can't follow this tutorial on my xperia go -_-
[HTC One S] projectD:
*Deleted, posted wrong place*
[HTC One S] venkatx2:
Flashed via Fastboot. But Xperia Ray Doesn't Boot. Red light Blinks

I followed the steps and flashed boot.img via Fastboot. It went successfully. Output below.

But phone(Xperia Ray st18i) is not rebooting. Red lights blinks 3 times. Am not able to connect to PC via Flashmode. I even installed Xperia ray drivers downloaded from Sony site, drivers in flashtool. Even installed PDANet drivers.

But still Windows 7 64bit PC not detecting my Xperia ray in Flashmode. Shows "USB Device Not Recognized. One of hte USB devices attached to this computer has malfunctioned, and Windows does not recognize it.". Red lights blinks 3 times over home button rim.

It can connect in Fastboot mode without any issue.

The Phone is Bootloader Unlocked/Rooted. RecoverX/BusyBox/CWM Installed.

I flashed boot.img from 4.4 JellyBean Carbon ROM.

My device is Bricked now.:crying: Red blink might be Battery Issue? If yes, then I'll order new BA700 Battery.

How to get my device back to working? :confused:

Please help. :eek:

Thanks.

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

C:\Android\Flashtool\x10flasher_lib>fastboot.exe -i 0x0fce getvar version

version: 0.3

finished. total time: 0.002s

C:\Android\Flashtool\x10flasher_lib>fastboot.exe -i 0x0fce oem unlock 0x<hiddenkey>

...

(bootloader) Unlock phone requested

FAILED (remote: Phone is already unlocked!)

finished. total time: 0.004s

C:\Android\Flashtool\x10flasher_lib>fastboot flash boot boot.img

sending 'boot' (8448 KB)...

(bootloader) USB download speed was 9698kB/s

OKAY [ 0.899s]

writing 'boot'...

(bootloader) Download buffer format: boot IMG

(bootloader) Flash of partition 'boot' requested

(bootloader) S1 partID 0x00000003, block 0x00000148-0x00000179

(bootloader) Erase operation complete, 0 bad blocks encountered

(bootloader) Flashing...

(bootloader) Flash operation complete

OKAY [ 1.486s]

finished. total time: 2.386s

C:\Android\Flashtool\x10flasher_lib>fastboot reboot

rebooting...

finished. total time: 0.001s

-----------------------------------------------------------------------
[HTC One S] venkatx2:
Yaay..:cool: The Issue resolved. I tried couple of times by pressing down button and connect to Flashtool.

After few attempts, it connected and I flashed the firmware.ST18i_4.1.B.0.587_CE_1252-3693.ftf

Now it's booting fine. Thanks a lot folks. :good: :highfive:
[HTC One S] Zetsubou Sensei:
Ignore this, posted in the wrong thread. Please delete.
[HTC One S] Thad E Ginathom:
sorry, wrong thread
[HTC One S] MKOJOA:
How to extract a Kenel from Android rom....Please help me
[HTC One S] derkleinebroicher:
Just unzip the rom. In the unzipped file you will find the boot.img.
[HTC One S] MKOJOA:
Thanks ..

---------- Post added at 06:13 PM ---------- Previous post was at 06:03 PM ----------

Please what is the difference between a kernel and boot.img
[HTC One S] Ideabow:
[Message deleted]
[HTC One S] Younes_vd:
Download links

the links don't work, I can't download them
[HTC One S] racersandeep:
Thank you

Thank you, you saved my almost bricked device
[HTC One S] ahmad69:
Hello, i have a Lenovo A5000-E tablet and it is turned off (black screen without any image) and when i connect it to pc, pc can detect it. i download its firmware. the firmware consist of a system.img file. and i want to install this image file with boot method (the only possible way). i cant unlock the boot loader cause smartphone is off. can you help me pls. all guidance will appreciated.
[HTC One S] firemax13:
Thanks a lot
[HTC One S] firemax13:
Thanks Really work for my Lenovo Vibe k6 Note
[HTC One S] mattman1490:
recently unrooted in supuser app. was going to use magis

I now get bootloop have tried everything. what to do. phone is a brick at the moment
[HTC One S] Destoy:
How to do when fastboot mode is corrupt

Hi, fastboot mode recognize my one s and can reboot by command but when i try to lock the oem by command fastboot oem lock this reboot but try to boot in normal mode with the white screen with the HTC logo and keep in bootloop without block the oem, same when i try to install the RUU by oficial way this recognize the phone but when reboot the phone try to boot in normal mode and the RUU app keep waiting for the phone till the message error like the phone was disconnected why i can do, flasing this boot.img will repair that? can i flash something to repair that? sorry for my english thanks in advance.
[HTC One S] bibi31450:
I got a little big problem, I wanted to root my phone i was to to the step where I had to to install Magisk since TWRP but i forgot to put the file in the phone file and here I can't restart my phone I'm stuck in fastboot mode and i can' use TWRP I need help pleaseeeeeeee
[HTC One S] aliferous:
I have a Rog 2, and I somehow used the 'Wipe' function in TWRP too liberally. The only thing I can access now is the bootloader. I tried the steps above, but I'm still getting the same error: 'Slot _a is unbootable. Error verifying image, your device will shutdown in 30s'. Please tell me how to go on about this. I'm stuck.
[HTC One S] sicons:
Hi. someone if he can help me how to factory reset htc one s. When turn on phone i have only htc screen with red text "This build is for development purposes..." It's the same when i try hold power + volume down or volume up...can't load to fastboot or recovery mode, again i get red text. If anyone have a solution how to instal official or custom firmware (ROM).
[HTC One S] wizz_kiddo:
how long should it take to flash? I dont know if its a loooong proccess but mine seems stuck.? TIA