Flash kernels with CWM? - HTC One X

Saw this over at the AT&T One X development forums. This script will apparently allows us to flash boot.img through CWM with S-ON and without having to use fastboot anymore.
http://forum.xda-developers.com/showthread.php?t=1686564#
Should work for us, no?
EDIT: vladnosferatu pointed out that our boot.img is located at mmcblk0p4.
So the command for our devices is:
Code:
"package_extract_file("boot.img", "/dev/block/mmcblk0p4");"

Tikerz said:
Saw this over at the AT&T One X development forums. This script will apparently allows us to flash boot.img through CWM with S-ON and without having to use fastboot anymore.
Code:
"package_extract_file("boot.img", "/dev/block/mmcblk0p21");"
http://forum.xda-developers.com/showthread.php?t=1686564#
Should work for us, no?
Click to expand...
Click to collapse
good research,
our block for boot.img is mmcblk0p4
so for us should be
Code:
"package_extract_file("boot.img", "/dev/block/mmcblk0p4");"

I'm pretty sure this is what the updater-scripts do anyway, but since we're not s-off the recovery can't flash that partition.

All updater scripts say this but it doesn't flash it as security is still on
Sent from my HTC One X using Tapatalk 2

tgascoigne said:
I'm pretty sure this is what the updater-scripts do anyway, but since we're not s-off the recovery can't flash that partition.
Click to expand...
Click to collapse
The AT&T One X is not S-OFF and one of their devs tested this. He posted and says it works, but maybe he "thinks" it worked. They don't have any custom kernels yet.

JDR0iD said:
All updater scripts say this but it doesn't flash it as security is still on that's why we use fast boot.
Plus that line had to be changed otherwise there was an error in the script it had to include something to do with tegra
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Sent from my HTC One X using Tapatalk 2

Tikerz said:
The AT&T One X is not S-OFF and one of their devs tested this. He posted and says it works, but maybe he "thinks" it worked. They don't have any custom kernels yet.
Click to expand...
Click to collapse
It doesn't throw errors, it just doesn't flash, which is probably why they think it works.

JDR0iD said:
All updater scripts say this but it doesn't flash it as security is still on
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Funny if it's an obvious known fact. If you read the thread, they're acting like they've never heard of it!

i'm gonna test it... give me some minutes

vladnosferatu said:
i'm gonna test it... give me some minutes
Click to expand...
Click to collapse
If they have stock kernel they wouldnr know if it works, guys it don't work. That why we have to fast boot flash.
Sent from my HTC One X using Tapatalk 2

Didnt work

Nevermind, they're flashing boot.img from different RUU versions. That's probably why it works.

Tikerz said:
nevermind
Click to expand...
Click to collapse
if this is true, perhaps the image from an ruu is signed in some way? Or maybe the at+t one x is just less protected than ours, after all, they have supercid, we don't. Either way, we know 100% that this doesn't work for us :-(

Related

[WARNING] Flashing boot.img on S-ON devices

ROMs developers and ROMs users - be aware!​
I know this thread doesn't contain any "created" thing, but it's quite important to let every developer here know, that their boot.img flashing commands in updater-script doesn't work with S-ON devices. We didn't realize it quickly because there are no custom kernels yet. But no matter if you use package_extract_file or write_raw_image or dd command - this wont work for most users here with just htcdev.com unlocked devices.
So the only solution for now is to download custom ROM, extract boot.img from inside it if developer didn't provide it separately (like I did) and flash it in fastboot mode using following command:
fastboot flash boot <boot_name.img>
f.g.
fastboot flash boot boot.img
fastboot flash boot boot_2.0.0.img
etc...
Also keep in mind that fastboot flash is the only way to use custom boot.img because fastboot boot doesn't work yet either.
I really hope we'll get S-OFF possibility soon!
Very Good!
Thanks!
Thank you mike for being with us and guiding the development..what would it be without you!!!
Sent from my HTC One X using Tapatalk 2 Beta-6
My device is s-off, I have to flash this?
mustafatk said:
My device is s-off, I have to flash this?
Click to expand...
Click to collapse
S-OFF?Are you sure?!
mustafatk said:
My device is s-off, I have to flash this?
Click to expand...
Click to collapse
How can it be s-off when he states that there aint anny s-off for Hox...
Skickat från min HTC One X via Tapatalk 2
Fekke said:
How can it be s-off when he states that there aint anny s-off for Hox...
Skickat från min HTC One X via Tapatalk 2
Click to expand...
Click to collapse
There are some very lucky few people who just so happen to get a factory s-off device, it's very much possible. Just highly unlikely for most people.
Willieumm said:
There are some very lucky few people who just so happen to get a factory s-off device, it's very much possible. Just highly unlikely for most people.
Click to expand...
Click to collapse
My device is from HTC for testing and adv (to my blog) purpose, after this I buy it from HTC directly.
So mike, please tell me, I have to flash this to my s-off device?
I had the same question because when I flashed the ROM it doesn't seem like changing the kernel name under about. Thanks for clearing that up.
Sent from my HTC One X using XDA
mustafatk said:
So mike, please tell me, I have to flash this to my s-off device?
Click to expand...
Click to collapse
you are one of the few lucky fellas who was handed S-off
Hmmm ... Seems like there is no change in name under Kernel version after flashing the kernel (fastboot flash boot boot.img). Is it that the developer hasn't changed the name of the kernel or is it not flashed properly?
What a pain to keep having to go to the computer to flash boot.img with every rom release. S-OFF needs to come sooner rather than later. Argh.
Sent from my HTC One X using Tapatalk 2
Sorry for the noob question...but as he got s-off and a diffrerent hboot version(1.01.000):can it be useful for all the develpoers who are working on gaining s-off???
nteeb said:
Sorry for the noob question...but as he got s-off and a diffrerent hboot version(1.01.000):can it be useful for all the develpoers who are working on gaining s-off???
Click to expand...
Click to collapse
Contacted him!
Also there is a new option "Modem Path"
nteeb said:
Sorry for the noob question...but as he got s-off and a diffrerent hboot version(1.01.000):can it be useful for all the develpoers who are working on gaining s-off???
Click to expand...
Click to collapse
No, it's not as easy as that. He's just got the security flag set to off. We won't be able to push any different hboot's while we're S-ON. It's just a case of finding an exploit to push the security flag to off while getting around all the protection that is surrounding it.
Sent from my HTC One X using Tapatalk 2
ShyamSasi said:
Hmmm ... Seems like there is no change in name under Kernel version after flashing the kernel (fastboot flash boot boot.img). Is it that the developer hasn't changed the name of the kernel or is it not flashed properly?
Click to expand...
Click to collapse
As there are no customized kernels up to now, the devs have no reason to change name of the kernel. It's still stock kernel after all .
mustafatk said:
So mike, please tell me, I have to flash this to my s-off device?
Click to expand...
Click to collapse
I removed boot.img from my rom so yes better to flash it via fastboot anyway.
Sent from Samsung Galaxy Nexus
Mike, I guess this means nandroid restores won't work automatically either and the backed up boot.img will need to be pushed by fastboot.
GuyAdams said:
Mike, I guess this means nandroid restores won't work automatically either and the backed up boot.img will need to be pushed by fastboot.
Click to expand...
Click to collapse
yes you are right, recovery doesnt restore boot.img

[TOOL][30/04] Automated Fastboot Commands For HTC One X - V1.2

Automated Fastboot Commands By TeAm HeX
TeAm Hex:
Admeisterz & Viruz007
I Created This Batch File For All The Newbies And Lazy People Out There Just To Make Fastbooting A Little Easier! Please Keep A Check On This Page As Its Being Updated Regularly With New Stuff!
Features
Flash CWM Recovery
Boot CWM Recovery
Flash TWRP Recovery
Flash HTC Stock Recovery
Flash Interim Recovery
Flash Doom Recovery - Sort Of
Flash Boot.Img
Clear Cache
Relock Bootloader
Get CID
Get MID
Reboot - Normal
Reboot - Bootloader
Credits - The Most Important Part!
This Tool Is Now On The Brilliant Tutorial Written Up By Putti71 (Thanks ) Which Is Handy If You Do Want To Learn Fastboot Commands Yourself! - http://forum.xda-developers.com/showthread.php?t=1605720
Please Use At Your Own Risk -- These Are Pretty Basic Commands At The Moment So Nothing Is Really Dangerous And I Highly Doubt Anything Will Go Wrong
If There Is Anything Else You Want Me To Include Please Let Me Know And I Know This Tool Could Be Used For Other Devices So If You Got Any Requests Again Let Me Know. I Am Already Working On A HTC EVO 3D One
PLEASE REMEMBER TO MAKE SURE YOU APPRECIATE & SUPPORT ALL THE WORK DEVS HAVE PUT INTO THEIR WORK. IF IT WASNT FOR THE CWM TEAM, PAULOBRIEN, DEV OF DOOM RECOVERY AND THE TWRP TEAM THIS BATCH WOULD BE USELESS! SO A MASSIVE THANK YOU TO THEM GUYS!
(If ive forgotten anyone, or anyone wants me to include them in the thanks please let me know and will update straight away!)
Link To Download
http://bit.ly/JMia20
Useful Links:
CWM OFFICIAL THREAD: http://forum.xda-developers.com/showthread.php?t=1594819
INTERIM RECOVERY OFFICIAL THREAD: http://forum.xda-developers.com/showthread.php?t=1579797
DOOM RECOVERY OFFICIAL THREAD: http://forum.xda-developers.com/showthread.php?t=1583713
TWRP RECOVERY OFFICIAL THREAD: http://forum.xda-developers.com/showthread.php?t=1622925
​
2nd Post
Instructions​
Please Unzip Folder - Then Double Click runme.bat To Start The Batch File.
Changelog
Code:
[B][30/04] V.1.2 [/B]
Added Flash TWRP Recovery
[B][27/04] V.1.1 [/B]
Added Instruction To Flash DOOM Recovery
Added Flash Interim Recovery
Added Relock Bootloader
Fixed Get MID Command
General Code Cleanup.
[B][26/04] V1.0[/B]
Initial Release
​
nice! link doesn't work though
Great app my friend ...nice and easy to use !! Keep it coming
Download link now Changed. All Should Be Working Fine. Any Further Problems Let Me Know ASAP.
Thanks tommmtom
Sent from my HTC One X using xda premium
Great app my friend ...nice and easy to use !! Keep it coming
Given it a try, works well! Nicely made, I like how the recovery image and other bits are in the zip. Should help people out well done
nice ideal for all in 1 tool (maybe good for other device too)
love it
vua777 said:
nice ideal for all in 1 tool (maybe good for other device too)
love it
Click to expand...
Click to collapse
It Will Work For Other Devices... The Only Problem Is That You Would Have To Change The Recovery Images... This Is Easily Done But If Anyone Has Any Other Requests For Any Other Phones Again Let Me Know And Ill Get It Done.
Keep An Eye On Post Aswell. Adding New Things And Will Be Releasing Later Or Tomorrow.
Thanks
Why isn't this in the Dev section?
Johnny0906 said:
Why isn't this in the Dev section?
Click to expand...
Click to collapse
Have now got forum mods to move post to correct place. Thanks
Sent from my HTC One X using xda premium
My toolkit has these commands. Look in my signature for the One X toolkit. However, Nice cmd script. Really clean!
hasoon2000 said:
My toolkit has these commands. Look in my signature for the One X toolkit. However, Nice cmd script. Really clean!
Click to expand...
Click to collapse
Yeah saw your post mate after I had posted this sorry. Good and looks very easy to use program mate....
I'm more of a cmd guy myself mate. I like the old and simple look of it and wanted to share this with other cmd lovers out there!
Sent from my HTC One X using xda premium
Nice update....more options ! can't wait for the next one
Cheers friend!
I've just noticed there's a new update out 1.29, do I need to delete supersu app and binaries then use this batch file to restore stock recovery and relock bootloader before I can update
Thanks in advance
Sent from my HTC One X using Tapatalk 2
bogfather said:
I've just noticed there's a new update out 1.29, do I need to delete supersu app and binaries then use this batch file to restore stock recovery and relock bootloader before I can update
Thanks in advance
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
No mate. I haven't as of yet included 1.29... If you give me the link I can include it and then all you have to do is flash it... I take it you mean like a HTC stock recovery?
If you're talking about proper updating via HTC then you've gotta relock bootloader, and install via the HTC ruu and then unlock bootloader again....
Let me know mate
Sent from my HTC One X using xda premium
beazley7 said:
No mate. I haven't as of yet included 1.29... If you give me the link I can include it and then all you have to do is flash it... I take it you mean like a HTC stock recovery?
If you're talking about proper updating via HTC then you've gotta relock bootloader, and install via the HTC ruu and then unlock bootloader again....
Let me know mate
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
It's an official ota HTC update, I read somewhere that it's not wise to update on a rooted phone so I was wondering what steps to to take to safely update
Sent from my HTC One X using Tapatalk 2
bogfather said:
It's an official ota HTC update, I read somewhere that it's not wise to update on a rooted phone so I was wondering what steps to to take to safely update
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Ok That Makes More Sense Mate. I Would Suggest Not Doing Anything Official For Now. If You Use A Custom Rom You Need To Keep An Eye Out For A Rom That Is Based On 1.29... The Only Reason You Would Use This Tool Is To Flash The Boot.img Because We Havent Got S-off Yet.
As Of Yet I Dont Think There Are Any Roms That Have 1.29 Though Mate So Youre Going To Have To Hang Tight For A Bit....
Does This Answer You Mate?
beazley7 said:
Ok That Makes More Sense Mate. I Would Suggest Not Doing Anything Official For Now. If You Use A Custom Rom You Need To Keep An Eye Out For A Rom That Is Based On 1.29... The Only Reason You Would Use This Tool Is To Flash The Boot.img Because We Havent Got S-off Yet.
As Of Yet I Dont Think There Are Any Rooms That Have 1.29 Though Mate So Youre Going To Have To Hang Tight For A Bit....
Does This Answer You Mate?
Click to expand...
Click to collapse
Sorry I forgot to say I'm on rooted stock rom
I know I can't just update because I'm rooted, so I was thinking of deleting supersu app and binaries. Then use this batch file to install HTC stock recovery and relock bootloader. Would that enable me to officially update without messing my phone up?
Sorry for all the questions
Sent from my HTC One X using Tapatalk 2
bogfather said:
Sorry I forgot to say I'm on rooted stock rom
I know I can't just update because I'm rooted, so I was thinking of deleting supersu app and binaries. Then use this batch file to install HTC stock recovery and relock bootloader. Would that enable me to officially update without messing my phone up?
Sorry for all the questions
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
I Aint Sure Mate, I Dont Know Whether You Can Root 1.29 yet...
You Could Definately Lock Bootloader And Flash Official via htc RUU But Not Sure On The Rooting Bit...
Give It A Try And Let Me Know....
http://forum.xda-developers.com/showpost.php?p=25499416&postcount=2777

s-on kernel installer(maybe)

found this guy made script and wondered if we can use it to remove pc need when flashing roms
http://forum.xda-developers.com/showthread.php?t=1847860
bump
Bump
Yes, please!
I really like updating roms, but a huge drawback when I have to connect it to my PC all the time...
I miss the old HD2 days...
Nice find, I think it could, but it's dependent on init.d, ROM devs could maybe implement or into there rom though. I'm gonna test in a mo. The boot seems to be writable once the roms booted, just not from recovery, so it basically flashes it as the ROM boots.
I tried it and got installation aborted
Sent from my RENOVATED One X..
mwilky said:
I tried it and got installation aborted
Sent from my RENOVATED One X..
Click to expand...
Click to collapse
status 6?
I think the .sh's need modifying for the one x.
backfromthestorm said:
status 6?
I think the .sh's need modifying for the one x.
Click to expand...
Click to collapse
Yupp
Sent from my RENOVATED One X..
As far as I can tell,
he's using the dd command which is useless.
Sent from my HTC One X
You need the pj IMG on USB stick!
So pretty useless
Easy making the image.
So if anyone has their hox recognizing a pj IMG on sdcard without USB reader let me know
PJ46IMG.zip. think that's right
Look at xmoos s off thread
Sent from my HTC One X using xda premium

[HBOOT MOD] Remove the red text

YOU MUST BE SOFF TO USE THIS MOD, IF YOU DONT KNOW WHAT THAT IS YOU DONT HAVE IT. I AM NOT RESPONSIBLE FOR BRICKS DUE TO YOUR NEGLIGENCE. Now lets continue.
You can find the hboot here to download: Download
Once you download this zip, extract all of its contents. You will need to verify the md5 of the mmcblk0p18 so be sure to pull the .md5 as well. Once you have the files, open the md5 in a text editor of choice. Then, put the mmcblk0p18 into your adb folder. If its in your path, I will make the assumption you can modify this to your needs. You will now need to use the code below. Be sure you are booted into android!
Code:
adb push mmcblk0p18 /sdcard/mmcblk0p18
adb shell
su
md5sum /sdcard/mmcblk0p18
#now check the output of this command with the md5 in the file you opened in notepad. If it DOES [U]NOT[/U] MATCH, [U][B]DO NOT[/B][/U] proceed
dd if=/sdcard/mmcblk0p18 of=/dev/block/mmcblk0p18
diff /sdcard/mmcblk0p18 /dev/block/mmcblk0p18
# IF THESE DIFFER DO NOT REBOOT, try the command again. If you are not S-OFF then you will see that the files WILL differ.
Now, you can reboot and the red warning text will be gone! Enjoy!
After you do this, it will look like this (Hboot will show 1.18.9999):
In addition, phone will no longer be recognized in fastboot mode on USB 3.0 ports
kusanagi-sama said:
After you do this, it will look like this:
In addition, phone will no longer be recognized in fastboot mode on USB 3.0 ports
Click to expand...
Click to collapse
Any other side-effects???
rohov said:
Any other side-effects???
Click to expand...
Click to collapse
Just that
kusanagi-sama said:
After you do this, it will look like this (Hboot will show 1.18.9999):
In addition, phone will no longer be recognized in fastboot mode on USB 3.0 ports
Click to expand...
Click to collapse
s-off....how???....
Sent from my One V using xda premium
handryg555 said:
s-off....how???....
Sent from my One V using xda premium
Click to expand...
Click to collapse
I think you have to be one of the lucky ones to have an S-Off phone.
Can I have a more simpler method for noobo like me. Thanks anyway.
Sent from my One V
to_sukanta said:
Can I have a more simpler method for noobo like me. Thanks anyway.
Sent from my One V
Click to expand...
Click to collapse
There isn't any other simpler way than that. If you can't handle a few commands, you shouldn't be modding your phone.
Is it also possible to change the screen to diff boot logo with s-off? Or can i only remove red text?
Sent from a hand.
Snyper0012 said:
Is it also possible to change the screen to diff boot logo with s-off? Or can i only remove red text?
Sent from a hand.
Click to expand...
Click to collapse
You can change the boot animation, but you can't change the boot logo, just remove the red text.
Not entirely true. I know of a utility that converts a 480x800bmp to nbh. From there (with an eng fast boot mod,(I got a friend working on it who will be nameless so you don't all bug him)) fastboot flash splash custom.nbh
Sent from my One V using Tapatalk 2
Can anyone please please confirm if I need to boot into boot loader to run the mode or normal booting into the system would be enough to run the adb commands?? I booted into normal system but adb commands showing that device not found.
You do this in rooted android with USB debugging enabled. If you can't follow the instructions, then you shouldn't be using this mod
Sent from my One V using Tapatalk 2
simonsimons34 said:
You do this in rooted android with USB debugging enabled. If you can't follow the instructions, then you shouldn't be using this mod
Sent from my One V using Tapatalk 2
Click to expand...
Click to collapse
Just asking, are there phones shipped with S-Off?As there is no method to off it by ourselves.If there are, they are indigenous to which countries?Where have they appeared?Or are they development phones?
Steam. said:
Just asking, are there phones shipped with S-Off?As there is no method to off it by ourselves.If there are, they are indigenous to which countries?Where have they appeared?Or are they development phones?
Click to expand...
Click to collapse
Some rare cases are there where the phone is factory s-off.the security is absent by default in such handsets.
Steam. said:
Just asking, are there phones shipped with S-Off?As there is no method to off it by ourselves.If there are, they are indigenous to which countries?Where have they appeared?Or are they development phones?
Click to expand...
Click to collapse
Yeah, most of the cases is when the guy received the phone from HTC as a gift... we've seen-
GB ship s-off
PVT ship s-off
And one more I don't remember
Sent from my One V
After running all the commands successfully, it is still showing there is a file difference. Is there any other way to remove this red text while booting. Please please help somebody. I''m desperate to get rid of this.
>.> learn to read. This is only for s-off phones. If you had an older phone or an unupdated one x you would of just bricked all because you didn't read
Sent from my One V using Tapatalk 2
simonsimons34 said:
>.> learn to read. This is only for s-off phones. If you had an older phone or an unupdated one x you would of just bricked all because you didn't read
Sent from my One V using Tapatalk 2
Click to expand...
Click to collapse
I'm sure my One V is s-off, I've just done it few days back. I'm currently running on PA2.99, how can it be s-off, even I tried to copy the mmcblk0p18 file to the /dev/block folder manually with proper permission. Still no luck. Please help.
You are not soff. Final. Your unlocked. And you don't even know what your talking about at this point
Sent from my One V using Tapatalk 2

Help rooting

hi, ihave unlocked my bootloader and installed a cwm but my phone is saying i am not rooted, am i missing a step?
Yeah install the superuser.zip that roots the rom. The phone is never rooted. Your phones software is.....
Mr Hofs said:
Yeah install the superuser.zip that roots the rom. The phone is never rooted. Your phones software is.....
Click to expand...
Click to collapse
Thanks i have done it now
JakePNEFC said:
Thanks i have done it now
Click to expand...
Click to collapse
And please don't make new threads every time you come up with another little question.....Just use one thread please
JakePNEFC said:
Thanks i have done it now
Click to expand...
Click to collapse
I would use twrp for recovery pretty much every Rom supports twrp.
Sent from my HTC One_M8 using Tapatalk
manup456 said:
I would use twrp for recovery pretty much every Rom supports twrp.
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
Any bets going around that if he is to use TWRP, that he'll make a new thread stating that main-version is blank
BerndM14 said:
Any bets going around that if he is to use TWRP, that he'll make a new thread stating that main-version is blank
Click to expand...
Click to collapse
lol...I know new user panic and make threads for no reason, but I can't bet now he seen your post already ?
Sent from my HTC One_M8 using Tapatalk

Categories

Resources