yashsingh1/xdaforums huggingface dataset:
[HTC Sensation XL] turkish0852:
bootloader and s-off

icecream 4.0.1 has just been realeased for the sensation xe 1.0 beta version,i'd like to see this rom on the xl,iv had devices with bootloader s-off its bloody fantastic ,all htc's should come with bootloader s-off its a shame,i sapouse it's a waiting game,im shore great minds a working on it, I don't know if the sensation xl came with bootloader s-off in Australia......
[HTC Sensation XL] rhedgehog:
Ship s-off or Eng s-off?
[HTC Sensation XL] jammysunny:
ship s-off.....
[HTC Sensation XL] claudenegm:
yea, it wont work I know!

Its totally normal abt the rebootRUU thing, it just puts the phone in a state that accepts the flashing of any signed (or unsigned I think) images and many other things we may not know! Haha

interesting! :D may I ask how did you get it? :D
[HTC Sensation XL] Dcmafia:
Would be good to acheive s-off but unlocked bootloader isnt half bad. We have permanent root and at least one custom rom so guess things will get up to speed as more people get the device. Alpha rev should do their thing soon so we can get full control over this device
[HTC Sensation XL] jammysunny:
I got it with it....so, where you can see the difference between a normal and a ship s-offed Bootloader??

tapatraced with Sensation XL
[HTC Sensation XL] rhedgehog:
pull the battery and then boot into hboot.Volume down and power.

eng hboot with S-off is hboot version 1.25.2003.
[HTC Sensation XL] jammysunny:
Kidding me?

You didnt understand my question....

I KNOW, but I wanna get answers, how we can change and overwrite which Part of System to get it S-Off....

tapatraced with Sensation XL
[HTC Sensation XL] :
lol. At a quarter to 2 in the morning, and after drinking Jaeger bombs all night for new years, i'm amazed i was even able to read it!!!
[HTC Sensation XL] jammysunny:
:)

I wonder, why noone can tell me how to get the difference between s-on and s-off...

TapaSwyped with SGT
[HTC Sensation XL] shingers5:
s-off alows you to flash radios and hboot(botloaders) without the need of ruu files. also alloys you to super-cid your device to flash any rom from any region or device to your phone.

as you should have guessed with s-on that isnt possible

******* at top of device in bootloader screen you will see on 2nd line after unlocked in pint. further along if s-off it will say blah blah blah pvt s-off or pvt s-on. no s-off for XL at minute so unless you are playing pls provide a screenshot of your bootloader screen
[HTC Sensation XL] jammysunny:
Right, but what I want to explain is, to get your XL s-offed with the help of an s-offed Phone....comparing both with i.e. terminal emulator or so....

Maybe this would be the beginning to get Chance to s-off our XLs.....

I hope, you understand it right now;)

tapatraced with Sensa XL
[HTC Sensation XL] claudenegm:
I believe if we have access to an eng. bootloader we can fake a rom.zip and flash it as an RUU. It's just an idea I have, I never tried it and dunno if it can brick the device since we're playing with a bootloader here!

It would be great if people having S-OFF to show us a screenshot of their bootloader and a list of "fastboot oem h" commands..

We'll need to wait for reverse engineers to start searching for an exploit to get S-OFF though.. we're just trying to find a temp. solution!

Thank you! ;)
[HTC Sensation XL] jammysunny:
I take Pics of it now....

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

tapatraced with Sensa XL
[HTC Sensation XL] chrisme14:
Hi,

Isn't it possible, that people with an eng s-off Bootloader can do something like that:

-root iss required

-Enable USB Debigging and plug in as charging

-Open Cmd

cd/

cd ...

cd platform-tools

adb devices

adb shell

su

dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img

This will dump the bootloader to an img to the SD card.
[HTC Sensation XL] jammysunny:
Is this really sure?

every Piece of technics has its own commands....

I dont wanna do my XL explode^^
[HTC Sensation XL] cj chitwood:
I'm no expert, but I don't see why this wouldn't work, assuming your bootloader is indeed on that partition and the .img files we've been using are an image of the entire contents of the partition.

Someone with more experience should chime in on this one.
[HTC Sensation XL] chrisme14:
If this will work, it will dump an img file of the bootloader to the sd and if it won't work, it will do nothing. You don't have to worry about getting your device to expload :) Someone with an factory s-off bootloader need to test it.
[HTC Sensation XL] chrisme14:
I have tested it, and it works perfect for me. The problem is, that we need one, with an factory anlocked bootloader to do this. Than we can flash this Bootloader on our s-on devices :)
[HTC Sensation XL] jammysunny:
I will try it now.....I hope, this works:)

So I go to cmd and this commandlines will be exactly the right ones?

---------- Post added at 11:05 PM ---------- Previous post was at 10:53 PM ----------

In my ADB is no platform tool....I downloadet it from HTCDev-Site, but where I can get this platform tools?
[HTC Sensation XL] chrisme14:
I have installed the android SDk to the root of my Harddisk and named it to SDK.

for me the command lines are exactly that:

cd/

cd SDK

cd platform-tools

adb devices

adb shell

su

dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img

---------- Post added at 11:27 PM ---------- Previous post was at 11:06 PM ----------

you have to run the sdk one time.and install the Android SDK Platform-tools, revision ..

After that, you can close it, rename the complete folder to SDK and copy it to the root of your harddrive. After that, you can do exactly my command lines.
[HTC Sensation XL] jammysunny:
I have problem with usb-connection...wtf...

I installed SDK, but there are two, one is platform, nothing there, and then tools.....

I mus t check first, why the hell my USB doesnt go right^^

Got a link for the right SDK?
[HTC Sensation XL] chrisme14:
Do you have team viewer installed? if yes, i can connect with your pc and install it right. i see what you see:)

Are you sure, your bootloader is realy s-off?
[HTC Sensation XL] jammysunny:
sorry no.....sure, its S-Off^^

My USB doesnt work well, thats my first problem I must solve....
[HTC Sensation XL] chrisme14:
Do you ave your usb drivers installed correct for your phone and tried another usb-port?

You only neet to plug you phone as charging. And do you have the Java JDK installed, to run the Android SDK once?
[HTC Sensation XL] jammysunny:
You Must have Java installed to unlock your bootloader...but in this abd was no platform or tools....Imade a fullwipe, now its right...I check now....

Tapaswyped with Galaxy Note
[HTC Sensation XL] chrisme14:
Is your bootloader only unlocked by htc dev, or is it realy s-off. This is a big difference
[HTC Sensation XL] jammysunny:
unlocked plus S-Off^^
[HTC Sensation XL] chrisme14:
Thats perfect ;) I hope, you got all to work, that we can test it.
[HTC Sensation XL] DanTehMan01:
Looks like we might start getting somewhere now :)
[HTC Sensation XL] chrisme14:
Tonight jammysunny and I will do it and i will post, if all workes perfect and we are able to s-off.
[HTC Sensation XL] DanTehMan01:
If you do, you will want to make notes and make sure that even if it doesnt work every scrap of detail is written up on here to help us all out and to figure things out
[HTC Sensation XL] chrisme14:
I will post all results here ;) i'm sure it will work. If it does, i will make a second thread and post a how to do it.
[HTC Sensation XL] jammysunny:
He will post all here, and I so it Post in German Forum;)
[HTC Sensation XL] hhuntter:
any update on the S-off?
[HTC Sensation XL] chrisme14:
It won't work :(

We have tested to do these commands on the s-offed device of jammysunny.

cd/

cd SDK

cd platform-tools

adb devices

adb shell

su

dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img

This worked successfully and we got an hboot.img file of his Device on the SD.

On the next step i tried to install his s-off hboot.img to my s-on device with the following commands:

cd/

cd SDK

cd platform-tools

adb devices

adb shell

su

dd if=/sdcard/hboot.img of=/dev/block/mmcblk0p18

This worked successfully too, but my bootloader is the same as before. Its s-on :(

I think, these commands will do a backup ofthe bootloader, but without s-off. We need someone, who knows a command to completely dump the bootloader with s-off. But not enaugh people are using this device and noone has enaugh programming skills.

The ideo was goot, but sorry for all.

Thanks jammysunny for your perfect help
[HTC Sensation XL] claudenegm:
We need an eng s-off! not an unlocked bootloader.. S-OFF is a flag and as much as I know it isn't stored in the partition where hboot is stored!

So, if we get an eng s-off, and flash it, we may use the oem commands to get s-off succesfully...

I'm not sure how it can work though!
[HTC Sensation XL] cj chitwood:
I have the Doubleshot (MT4GS) and have been reading, waiting for someone other than Team Rev to come up with a way to unlock / permanent-root the device without requiring me to send in my phone's uniquely identifiable information. Anyway, while reading, I read that the S-ON/OFF flag is stored in the RADIO. I read further that it's a hardware flag, not a firmware flag, and on the *DOUBLESHOT* once you turn it off you cannot (period!) turn it back on. I've also read the doubleshot and Sensation (XL?) have nearly identical inner bits. Might your hardware have this same characteristic as mine?
[HTC Sensation XL] DanTehMan01:
The keywords here are 'nearly' & 'identical'. its not likely they are the same and 'nearly' isnt close enough for Devs to play with :cool:
[HTC Sensation XL] claudenegm:
Guys, can anybody dump his engineering S-OFF and post it here? Since I dnt have time time doing anything these days, am suggesting trying to install an eng hboot by the method above and see how it goes!
[HTC Sensation XL] hitchmontana:
Hello

How did you get s-off after you unlocked it with htcdev?

I don't get s-off but I have the bootloader unlocked.

i get crazy about this

regards

hitch
[HTC Sensation XL] MadCobbler:
There is no current way of getting S-OFF yet on this phone. The couple of people that do have S-OFF have got the phone like that.
[HTC Sensation XL] hitchmontana:
That means no way of installing ics at this moment?
[HTC Sensation XL] DutchDanny:
Guys.....

It's really nice what you are trying here.

But

Do you think it would be as easy as fastboot commands to get S-off.

hboot is useless from S-off device, as our bootloaders are unlocked.

What needs to be done is: get rid of Nand write protection, so we can flash radio's

We need revolutionairy team to get this done.

So if you want S-off

Find them, and ask them
[HTC Sensation XL] hitchmontana:
Ok, but revolutionary doesn't suppert hboot version 1.25.00x. So what is to do?
[HTC Sensation XL] MadCobbler:
Well we will just have to wait till they get it sorted as no one here knows how to do it at this minute in time...
[HTC Sensation XL] hitchmontana:
What about this boot.img ?

http://xdaforums.com/showpost.php?p=19494357&postcount=18 from my HTC Sensation XL with Beats Audio X315e using Tapatalk
[HTC Sensation XL] MinecraftZombi.es:
so it's the radio.img that contains the s-off flag?

so if one were to have a copy of a boot img from an s-off device, would that help any?
[HTC Sensation XL] hitchmontana:
No it isn't, i still have s-on :(
[HTC Sensation XL] jammysunny:
Hi @All,

I tried it for days.....to write a new .img with the old commandlines in adb, img could be flashed right, but no results in S-Offiing a n other device:(
[HTC Sensation XL] booyaga:
htc norway about s-off phones

Ole: His answer was as extensive as my own - Since we do not support S-OFF on the phones we have not received or provided any information regarding the NAND lock either. I guess in this case, it may create some frustration, but you must either find a way out of us to unlock it or find a Sensation XL which has already been opened. It is often the demo phones that already have S-OFF status since, in most cases, the phones shipped to the Middle East. Then the boot loader has been unlocked as well. S-OFF. The demo phones will also be released to dealers who are ambassadors - So they get a phone from us so they can easily show clients around the device
[HTC Sensation XL] hitchmontana:
I have an ambassador phone, and it is s- on!!!?? Did i misunderstand the message?
[HTC Sensation XL] nicky1980:
how do you did dees
[HTC Sensation XL] booyaga:
yes, according to him, it should be s-off :confused:
[HTC Sensation XL] hitchmontana:
Maybe i should not do the the htc dev procedure to unlock, actually i have s- off, what the f*#$@???
[HTC Sensation XL] hitchmontana:
I mean i did the htcdev procedure and it was a mistake???
[HTC Sensation XL] booyaga:
if it says s-off, unlocking wont make it s-on ;)
[HTC Sensation XL] booyaga:
people(READ DEV's) having any progress/ideas with this, please post/refer to THIS POST :)
[HTC Sensation XL] hitchmontana:
So still no solution?
[HTC Sensation XL] booyaga:
nope. hoping some skilled devs will look at it (pretty sure they are looking)
[HTC Sensation XL] mr.lm:
White card and xtc
[HTC Sensation XL] hitchmontana:
What do you mean?
[Xperia Play Android Development] labbala:
Hi,

I'm currently woring on creating a complete VM and a document with instraction of getting from compile to flahsing from begining.

The complete enviroment will be set and ready with the Stock ROM (currently targeting 4.0.2.A.0.58) and the Android OS.

This will allow users to be able to take this VM and start right a away to change the Stock ROM and integrate changes for that from other modes.

will update this thread when it's done. and links for download (unless someone will be faster the me :-) )

18/12 Update:

Just now finish creating an working and compiling enviroment with 2.3.4_r1 of Android

now working on making it to work with the Sony Ericson source code...

Regards,

LaBBa.
[Xperia Play Android Development] labbala:
Hi,

I need a little help here... i have followed the steps in Google:

http://source.android.com/source/initializing.html

and also the Journal:

http://journal.tianhao.info/2010/12/compile-android-gingerbread-on-ubuntu-10-10/

i have compiled the code and got it up and running and also in emulator with the command line that was written in the Journal and the Android is working..

now i try to understand the Sony Ericson guide:

http://developer.sonyericsson.com/wp/2011/05/06/how-to-build-a-linux-kernel/

I have downloaded the ARM cross-compiler and installed it, was really bad instructions on how to install it. but just need to run: sh ./the_downloaded.bin

and installed it correctly

after installing the ARM cross-compiler successfully done a make to the kernel but only after fixing the symbolic link that from some reason was attach to 0x86 arch and not arm.

the paths where different since i used the default installer path and match the same version that they used: 2010q1

so first done this for the .config :

then run the make:

now i got kernel compiled!

the question is:

i know that with the Android compiling i got 3 files in the /source_android/out/target/product/generic:

1. ramdisk.img

2. system.img

3. userdata.img

do i need to use the ramdisk from the Android for the next steps of SE guide ?

1. Getting a RAM disk and extract it

2. Re-package it with all of the kernel of SE that we just compiled

3. Assembling the boot.img using the mkbootimg

moreover, after i assemble the files i want to make a really clean installation and cleaning all the flash and installing all in a vanilla mod.

what should be the next steps ?

Regards,

LaBBa.
[Xperia Play Android Development] labbala:
I thought that the community here will help in this small matter so we will have more pepole that could join the efforts of making brtter and cooller roms... I guess I was wrong. All I wanted to do is help the dev community and create the full step by step guide to starting developers in the android world....

Sadly I'm forced to end this thread due to lake of knowledge...
[Xperia Play Android Development] stormtroopercs:
im sorry i would help but i dont know much lol ;) srry no one that knew could or would help
[Xperia Play Android Development] nickholtus:
hi,

I hope that you are able to get this working.

i will use it when it is finished

Edit: what have you exactly done?

Maybe i can help
[Xperia Play Android Development] labbala:
all i wanted to do is to download all the source codes and compile it and then creat the same version (for this case the .58) manually and get to the same images that need to be flahed.

i wanted to create from this a complete tut that others that have allot of knowladge in development could start working without the stragling of setting up an eviroment or all the issues about how to get from compiling to acctuall creating an .img to flash it on your device.

just a simple "out of the box" solution so pepole could get and work right a way without wasting time in assembling the source codes and setting then env.
[Xperia Play Android Development] nickholtus:
ok, and where are you?

I mean what have you done for now??
[Xperia Play Android Development] labbala:
please see the second post.. it's all there..
[Xperia Play Android Development] nickholtus:
yes you need that ramdisk for the kernel.

but you need to edit the ramdisk to work with the xperia play.

i can do that, can you upload it??
[Xperia Play Android Development] labbala:
what i'm going to do now is, i'm going to upload all the VM to the web and write the complete tutrial for all the steps i have done so far and then we could continue. thank you for trying to help!
[Xperia Play Android Development] nickholtus:
ok,

if you need some help PM me!
[General Accessories] okishead:
I was browsing the web in search for an answer for a simple question:

"How to properly charge your li-ion battery and increase battery life?"

This is what I got so far.

1. Battery life cycle: Any Li-Ion battery life is measured based on how many times can you discharge it from 100% to 0%. Normally the figure is 300-500 times and it depends on a factor called DoD (Depth of Discharge).

2. Depth of Discharge (DoD): Quite self-explanatory thing. If you have 20% charge left, it means that DoD=80%. The higher is the DoD the lower is your battery life cycle.

Comparison table is here:

So, here's the answer to the painful question "Why should not I discharge my li-ion to 0%?" The answer is - your battery will die faster. I'm trying to get used to put both my OEM and Mugen Power batteries to charge right after my Nexus informs about 15% charge left.

3. Deep discharge: Not allowed for li-ion batteries. This is pretty interesting: Li-ion should never be discharged too low, and there are several safeguards to prevent this from happening. The equipment cuts off when the battery discharges to about 3.0V/cell, stopping the current flow. If the discharge continues to about 2.70V/cell or lower, the battery’s protection circuit puts the battery into a sleep mode. This renders the pack unserviceable and a recharge with most chargers is not possible. To prevent a battery from falling asleep, apply a partial charge before a long storage period.

Also: Do not recharge lithium-ion if a cell has stayed at or below 1.5V for more than a week.

So, what I got from this section is - when I get to 0%, I will not try to switch on my phone again because that can damage my battery.

4. Don't charge in small portions: This is important in a long term for higher capacity batteries. If you use an extended 3000+mah battery it's important to use the whole capacity of the battery to avoid aging of cells that are not used. It's recommended to charge your extended battery to 100% from time to time.

5. Recycle your batteries ;)

I think this article here could be updated a little with these.

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

Sources:

http://mugen.tv/?p=690

http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries
[General Accessories] 7_michel:
Most smartphone maintain a charging current even after the 100% charge level is reached. I think that this should also have an effect on battery life....

What is your opinion ?
[General Accessories] okishead:
I think that in this case battery is protected with the battery's controller that only opens the current when the discharge level is below a certain point. That is why it's safe to keep your phone on charge overnight.
[General Accessories] movielover76:
This part is wrong

. Don't charge in small portions: This is important in a long term for higher capacity batteries. If you use an extended 3000+mah battery it's important to use the whole capacity of the battery to avoid aging of cells that are not used. It's recommended to charge your extended battery to 100% from time to time.

if you notice if you always discharge to 50% you will get 1500 discharge cycles, that's not 1500 discharges to 50%, but 1500 full charge cycles, which would be recharging it to 100% twice from 50%, so by going from 100% and always recharging at 50% you get 50% more life out of your battery. Li-ion batteries last longer when not full discharged regularly, sadly usage of a smartphone is not very well suited for keeping it at a high charge as most users, even me, don't charge multiple times a day but try to optimize their phone so they only have to recharge once a day at night, which is the reason I like removable and replaceable android phone batteries :)

Li-ion batteries also are smart in that they intelligently charge and discharge cells so that certain cells won't age more than others, so you don't have to worry about that.

Also this is for another poster, the batteries have protection circuits to ensure that you don't overcharge your phone, so leaving it on the chargers after 100% I charge my phone each night to 100% and it doesn't do any damage to the battery.
[General Accessories] okishead:
The "charge in small portions" is correct. What I meant is this if your battery is charged up to 50% and you keep charging it to 75% and never up to 100%, that is not good practice. Experience with new li-ion batteries shows that once or twice in a week it's important to charge it up to 100%.

Regarding the protection in the batteries - it works against overcharging, but sadly, not against overdischarging. Your phone will allow you to switch it on one or two times after the indicator shows the zero level. It's important NOT to do that because that damages chemistry in any type of batteries including li-ion.
[General Accessories] votinh:
1. Read this: http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries

"Li-ion does not need to be fully charged, as is the case with lead acid, nor is it desirable to do so. In fact, it is better not to fully charge, because high voltages stresses the battery."

2. This: http://www.centralhobbies.com/instructional/lithium.html

1. Charge often. Don't try to fully discharge the battery packs frequently. This only adds strain. Several partial discharges (regular use) with frequent recharges are better for lithium-ion than one total discharge.

Confusing, yes, sure is.

Basically, for Li-Ion battery.

1. NEVER allow deep discharge (to 0%). Once in a while, I still get an article on web suggesting let the battery completely discharged. Hmmm.

2. Fully charge (to 100%) is not good either, partially charge is better. Confuse enough?
[General Accessories] KRAZYADROIDMASTER:
Yes confusing!!!
[General Accessories] cmazy:
Newer charging li-ion battery over 90% will double it's lifetime. This is mentioned also in battery university page. Some laptops also include battery care function which limits full charge to 80%. This is good evidence that this is the way to prolong battery lifetime.