yashsingh1/xdaforums huggingface dataset:
[Click Android Development] segway_:
Basic menus for HTC Tattoo

Just to know:

Basic menus of the Tattoo

Well, here are a small contribution:(from: wxw.htcmania.com/showthread.php?t=77954)

Menu "System recovery":

Press and hold "Home" key + key GREEN Phone (in English call SEND) key and "POWER" until a triangle with the exclamation sign "!" and a mobile lying, then press again the same sequence in this order:

"System recovery":

reboot system now

apply sdcard: update.zip

Wipe data / factory reset

wipe partition cache

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

Menu FastBoot "

Press and hold buttons "BACK" key and "POWER".

FastBoot Options:

Hboot Down> <VOL Mode

<MENU> Reset Device

<ACTION> Restart to HBoot

<left> Power Down

If we enter the menu HBOOT "from the menu FastBoot:

Options HBOOT "

<back> Fastboot Mode

<send> Simlock

<HOME> Recovery

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

Menu CLEARSTORAGE "

Press and hold keys "HOME" + key "BACK" key and "Power" menu until you exit bootloader or until it is seen that shows a menu that appears and disappears, then release only "POWER":

Options CLEARSTORAGE "

Delete all user data?

<ACTION> Yes

<power> No
[Click Android Development] mainfram3:
build.prop and init.rc are stored in the boot partition (/dev/mtd/mtd2) and get copied to / upon startup. We need to write a modified boot partition to /dev/mtd/mtd2 to make those changes permanent. We also need to write a new recovery partition, using the test keys, so that we start using custom update.zip files.

What has me puzzled is that trying to write to mtd1 (recovery) or mtd2 (boot) always fails. Trying to remount mtd3 (system) results in all the free space magically disappearing (with lots of errors in dmesg). If we remount mtd4 (data) there's no problem, so what's the difference between mtd3 and mtd4 ? :confused:

I'm inclined to believe that there's some sort of protection preventing us from writing to this blocks but I can't find any real evidence (in the kernel code or in the android code) that supports this...
[Click Android Development] segway_:
Why don't we use fastboot util:

hxxp://developer.htc.com/google-io-device.html

hxxp://wxw.gotontheinter.net/content/fastboot-cheat-sheet

to flash the boot.img to boot partition?

Or there is a reason not to do so?
[Click Android Development] mainfram3:
Fastboot only allows you to flash signed .zip files. Our modified images can't be signed, because we don't have release-keys.

Also, we can't boot images from fastboot, because it has been disabled in our SPL.
[Click Android Development] segway_:
Have you try to erase boot with fastboot and then do a

flash_image?

Just wondering..
[Click Android Development] mainfram3:
Segway, plase don't take me wrong, but please spend a little time reading the past threads on all the things that have been thrown at the Tattoo.
[Click Android Development] segway_:
Sorry...

i thought that the fastboot util may use a different approach

for erase the boot from the command:

cat /dev/zero > /dev/mtd/mtd2

:o
[Click Android Development] mainfram3:
You obviously know your way around a Linux system, so I only suggested you read the other threads so that you can be up to speed and give new ideas ;)

Through fastboot I can erase the "cache" partition. Erasing boot or recovery won't work (permission denied from the remote (remote is Tattoo)). Didn't try on /system, but I'm sure the results will be the same :(
[Click Android Development] Coburn64:
Could someone try the m7 exploit and then backup the mtd2 partition to the sdcard?

eg

< m7 root, export lib and paths >

# dd if=/dev/block/mtdblock2 of=/sdcard/bootmeup.img

edit: just tried and got:

# dd if=/dev/block/mtdblock2 of=/sdcard/bootmeup.img

dd if=/dev/block/mtdblock2 of=/sdcard/bootmeup.img

/dev/block/mtdblock2: read error: I/O error

0+0 records in

0+0 records out

0 bytes transferred in 0.007 secs (0 bytes/sec)

#

:confused:
[Click Android Development] svprm:
Same here.
[Click Android Development] mainfram3:
You're looking for

cat /dev/mtd/mtd2 > /sdcard/mtd2.img

I already got dumps of all the MTD blocks, opened them (mtd2 and mtd3 have a special format), repackaged them and tried (failing miserably) to update them :/
[Click Android Development] mainfram3:
Just went through /sys/devices/virtual/mtd , looking to find differences between mtd{1,2,3} and mtd5. I cannot find a single clue as to why we can do whatever we wish to mtd5 while the others are crippled.

Feel free to take a look, in case I missed something :o
[Click Android Development] mainfram3:
Flash_image

I just found out that flash_image works correctly for the dumped images.

If I dump /dev/mtd/mtd1 to /sdcard/mtd1.img I can use flash_image recover /sdcard/mtd1.img and it runs OK.

I then padded my recovery.img, using 0xFF's, to the same size of mtd1.img and .... I still get an error from flash_image :(
[Click Android Development] zbrahead91:
Probably due to checksumming. Look in mtd1.img for a checksum
[HD2 General] parv1:
I have been trying to set up the hotmail account.

I've tried a couple of times and eventually got an account set up. Then trying it last night, it just decided that it didn't want to connect.

So i tried to delete the old one but it wont let me as its greyed out.

So i created a new one, hoping that the old one will become active and allow me to delete the old one.

Now when i go into the account settings, my yahoo accounts are active and can be deleted, but the 2 hotmail account, one account called hotmai the new one called hotmail.com are just greyed out.

What can i do to make the hotmail account active so that i can delete it?
[HD2 General] camper:
i am having the same problem too.

I have used an workaround (first create hotmai then edit to hotmail) to add 2 hotmail acco

unts on the device, but there is no way to remove it.
[HD2 General] parv1:
I take it that no one has come across this problem before?

or have i put this is the wrong place?
[HD2 General] donalgodon:
I found that I could create the account using the "Windows Live" application, and everything was simpler from there.
[HD2 General] Archer:
+1. Sod it +100!

Windows live allows you to set up 1 hotmail account with minimal effort and also gives you push email ability. Unless you want multiple hotmail accounts then you shouldn't be doing it any other way.
[HD2 General] parv1:
thats fine, but what would a person do if they already have 2 hotmail accounts and the accounts are greyed out so that deleting them normally isn't an option?? Any suggestions?
[HD2 General] bocsta:
i had same problem. rebooted phone and windows live logon screen came straight up. entered password and mail updated.

Still cant delet the hotmail account though...still greyed out
[HD2 General] bocsta:
found the solution here

http://xdaforums.com/showpost.php?p=5319950&postcount=10
[General Questions and Answers] alik106:
Hi i have just bought an HP ipaq 6340 it needed a battery as old one not hold any charge due to age,i bought an after market battery for it "not original" but when i plug it in it says "an unrecognised battery has been de4tected and will be discharged" i bought a new wall charger to see if it was the charger but it was not the place i bought the battery from will exchange it but i wonderd is there a fix for thgis problem? the battery serplyer says he sold hundreds an never herd of it...desprate for help now ..:confused:
[HD2 General] Piemole:
Anyone else experiencing excessive battery drain on their HD2?

I am interested to know if this is just my phone or if it actually just chews through that much juice.

I have had windows mobile phones for several years so I know all the basic ways to keep battery drain down.

Stuff that I have generally found:

1. If I keep the screen turned on without it going blank I lose about 1% every 2 minutes.

2. If I am browsing that figure almost doubles.

3. My old Touch HD used about 5% battery overnight when in standby but this phone will go through about 25%.

4. The phone gets really hot when browsing (much hotter than my old Touch HD)

I have tried flashing ROM's and Radios but nothing seems to help.

I am not running any software on the phone that I wasn't running on my old HD1.

I have only had the phone for a week so I am not sure if this is normal but I would be very surprised if HTC released a phone that lasts for only a few hours on one battery.
[HD2 General] Crash95:
+1

-1% every 3 minutes

-4% during the night (when i'am sleeping)

MAXIMUM : 45/48 HOURS
[HD2 General] Piemole:
I wish I got 2 days
[HD2 General] hoss_n2:
we really need extended battery ,hd1 battery was much more better.
[HD2 General] bhumbro:
Good mate but yes i agreee HTC has come up with a battery eating device this time around. My device on full charge just gives in around 8-10 hrs. This might be dat my EDGE is on and 7 mails accounts sending mails back and forth.

but truly i think that HTC better look into this very seriously cause more and more ppl are suffering in this battery drain..

Any of flashing roms and radio not helping either... did a complete hard reset but no step up

HTC come with longer battery battery for bigger devices soon......

The only solution i see now is get one of those extra battery worth mind bogling £52.87
[HD2 General] Hexjibber:
I've had this problem ever since flashing to 1.66, I flashed the radio to 2.07.50.27 as this was said to solve the problem but it hasn't made any difference after a few days of use. My battery life used to be significantly better when I was on the original stock ROM, so much so I'm considering going back to it :(

I also know all the tricks as to clawing back the battery drain, my phone is idle on my desk at work most of the time and I don't use Wi-Fi, all the location stuff is turned off as are weather, stock and other updates plus my screen is set to 30% then off after 60 seconds. Despite all of that I lose 1% every 2-3 minutes :(

It seems to me that perhaps the radio is checking for reception pretty much constantly rather than say, 5-10 mins perhaps? This used to be a problem on my old Blackberry Storm but a few fimware updates solved it, eventually! ;)

The only other thing I've noticed since the update is that once the battery drops below 50% or so, the drain seems to slow, I don't know if this is perhaps because the phone goes into some sort of semi-power saving mode?

Suggestions/hints welcome! I've had a semi-thorough look into this on the forums and tried most of the suggestions but still the problem remains. Will battery life improve after a few charges perhaps as this was a trait of my Storm's battery, the more you charged it the better the day to day battery life was (and no it wasn't because I had it plugged in all the time! Over time the general charge just seemed to improve when roaming).

Thanks! :)
[HD2 General] romac:
You need to indicate what services you have running. Do you have any data services running eg: location services, push mail, weather? all of these have a bearing. In addition, network services can also drain a battery, especially if the signal is weak and the phone have to search for a transmitter, or 3g services.
[HD2 General] romac:
That is a very interesting comment. Although since upgrading to radio 2.07.51.05_2 I have had very good battery life, I too have noticed a slowdown after 50%
[HD2 General] Piemole:
Nothing is turned on, everything is set to manual.

As I stated I know all the basic stuff. I understand that all these things have a bearing on battery loss.

Everything I stated in the first post is for when I have nothing running. The phone is just sitting there running sense, thats all.
[HD2 General] Savage-wp:
I have had my HD2 for a few days now. I am on Vodacom in South Africa.

I have not had a problem with battery life.

Yesterday i unplugged from the charger at 07:00. I spent about 1 and 1/2 hours of talk time on the phone, it was permanently connected to 3g doing weather updates etc. Sent and received a couple of sms's. Also played with a few tweaks and reboots.

When i got home at about 18:00 i had over 30% battery. I then surfed the web for over 2 hours to drain the battery.
[HD2 General] jayvmateo:
try setting Network Selection to Manual
[HD2 General] thierryjc:
Same here with and without stock ROM.:mad:
[HD2 General] chmun77:
yeah.. the phone is a battery sucker.... another cons of HD2....
[HD2 General] XDA mark:
This is very interesting to read because I do not have this problem. When I left my HTC HD2 on last night (I woke up at 4 in the morning to get something to drink and unplugged it) and then woke up at 8, it was at 98%. That means it went from 100% to 98% in 4 hours. Not to bad imo.

I am now at work and it is 15:34, and I am at 87%. I have made some calls, watched some videos, send a few text messages. Not much (I am at work so I got other things to do). So 08:00 (98%) - 15:34 (87%) - that's 7 and a half hours, with some calls, text messages and a video.

I am pretty sure when I get home at 18:30 the battery will still be above 75%. Then I connect to my wifi at home, refresh twitter, weather, browse the web a little bit, check e-mail etc. So that will drain my battery a little more.

But overall I have not had any problems with my battery life. I always make it trough a day, and never have a problem like 'damn my battery is almost done and I am not near a charger'.

Some info that might help:

I do not sync ANYTHING automatically. I still have some things to do with my Vodafone contract and do not have an unlimited plan yet. I only sync at home on my own wifi connection. For me this is not a problem, because I only need to refresh the weather each morning to see what the day is going to be like. Twitter I only do when I have the time. Stocks I do not use.

I have screen brightness set to automatic.

I am on 3G most of the time.

I am running the official 1.66 Dutch ROM.

I have some tweaks, games and programs installed.

I hope you all solve this issue, because it just can not be that my HD2 has a good battery life, and your HD2 not :confused:

Kind Regards

EDIT @ 17:00 still 87%.
[HD2 General] antaed:
I am in a 3G 2100 only network (I don't have 2G functionality).

ROM: Artemis 3.0

Radio: 2.06.50.23_3

Customization: Seiya 6.5.5

I don't leave any automatic updates on, except for my e-mail account every 2 hrs.

I never close my connection.

The drainage overnight is -3% (8hrs).

The battery lasts at least 12 hrs of intense usage.

Normally I have to recharge every second day (e.g. I charged last night, I answered a few calls, I did some IM and browsing and I still have 73% left).

For a phone with a 1 GHz processor, a 4.3" screen and a tiny 1250 mAh battery I find the drainage is rather decent.

Mind you, I ALWAYS do at least one full charging cycle to my battery after flashing a new ROM. I mean: full discharge, battery out 1 min, full charging in OFF mode, battery out 2 mins.
[HD2 General] creed:
I have seen this process recommended a couple of times now. What is the theory behind it if you don't mind me asking?
[HD2 General] jamieeeee:
maybe its also becouse some of us couldnt wait using the hd2 when they got it (like me) before it was fully charged for the first time

anyway my battery life has improved a little bit, i was at 74% this morning and did a lot of browsing, installing, tweaking and now its at 3%. it used to be much worse
[HD2 General] ujkadusko:
I have battery consuming problem from time to time.I did everything:

installed new stock rom 1.66;

transfered all data which phone is using from card to phone memory(pictures,icons,sounds.etc...)

all updates are done manually;

Gprs connection is swiched off on the idle after one min;

One night it is loosing from 2 to 4%;

another from 30 to 40%

and it is eating memory from 10 to 15mb

I think that it is radio which is causing battery drainage so fast(to much communication wit a base stations,because when I am checking spb wireless monitor in the morning,there is no any data traffic.

I hope they can solve problem,because it is getting me mad and crazy:mad:
[HD2 General] luffyp:
Try setting the screen brightness to 10-20% (on battery powered)

and dim backlight after 10 seconds (on batter powered).

It helps a lot, at least for me.
[HD2 General] antaed:
as far as i know, the battery has an integrated digital circuit (ic) which estimates the state-of-charge (soc). the procedure resets/calibrates the ic to obtain a more accurate estimation. since the radio rom is in charge with the power management (among other things), by changing it you decalibrate the "gauge".

i don't know if i've got the theory right but i tested this myself and it surely works.
[HD2 General] kilrah:
I'm mainly having an issue overnight. Currently the HD2 sucks 40% of battery during a 8-hour night, that's with all data connections disabled, and on EDGE network. I tried to track down to which program is the culprit and deciding to do stuff while it shouldn't, but didn't manage so far.

For day use today I left at 10:30am with a 96% full battery, watched some videos with full backlight for approx. 20 mins, listened to music through BT headphones for 1h30, about 30mins of which I was also browsing the net, plus maybe 30mins of extra browsing without music... and when I was back at 16:30 my battery was at 1%, the phone turned off just when I was putting it on my desk.

That's definitely VERY short.... seems I'm not done trying to optimize. The same with my Kaiser would have left me with still 70% when arriving home...

Oh, and the phone froze 3 times during that...
[HD2 General] eighty1:
How long should first charge be?

This is not what I want to hear after getting my HD2 in the mail. I have been searching online to actually see how long I should charge my phone before first use. There is a lot of in consistent info about first charge length. Could this be a reason some of you are experiencing battery drain maybe? How long did most of you charge your phones the first time that are experiencing this so that maybe it could help me or others that may need to charge longer or if it even matters?
[HD2 General] lovebell:
Same situation here, my HD lost 4% battery life overnight with data on in past 1 year, and HD2 drain 20-25% in one night.

I have sent it to HTC CARE for a battery test, however, they said mine is fine.

If I turned my data connection off (EDGE), only drains 2-4% overnight, it is strange that my hd2 has the exact same settings on data connection as my old hd(all data services off except weather is 6 hours auto-update, and Hotmail set on "as item arrive") , how come HD only drains 4% overnight but HD2 drains 25%?

The only solution I found is buying more batteries, I got mine 3 batteries...
[HD2 General] antaed:
priming lithium-ion batteries is not required because full capacity is available after the first charge. however, a battery reset is necessary for the digital circuit to accurately estimate the state-of-charge. so perhaps you guys didn't do this the first time or after flashing radios.
[HD2 General] eighty1:
How is this battery reset done and is it done before or after the charge?
[HD2 General] br4nd0nh347:
First I would like to say that you can get an extended battery for the HD2 from clove.co.uk for about $55. I don't know about linking to other sites so i will not do it. If you search htc hd2 on that site you will see a link for the extended battery (which comes with a built-in stand)

Second I would like to address the draining of the battery.

Please DO NOT totally discharge Li-ion batteries constantly, they don't like it. Google it please and hit the top 4 links for more info. For older batteries (Discharing is only for older batteries with memory effects) or Ni-cad I believe you should discharge completely.

The only thing I am unsure about is about the battery reset, which if needed, it should be done once when you get it or once after a flash?
[HD2 General] antaed:
full discharge - battery out 1 min - full charge in off mode! - battery out 2 mins.

the battery out time is of course approximate, the point is you have to give it some time out.

as mr. kayne very well said, do not drain the battery completely too often, it is preferable to do many incomplete charges rather than doing this. ideally the battery reset should be done before the 1st use and once every 6 month afterwards, as i read in some article.

but the article didn't mention anything about flashing radio roms :). the only time i had severe battery drain as some of you described, was after flashing a new radio. after some suggestions and research i did a couple of battery resets and the problem was solved. i always do this since and never had any issues.
[HD2 General] spiderhider:
could you point me in the direction of some documentation in regards to Li-ion batteries with memory.

thanks
[HD2 General] antaed:
i found a couple of articles with for you mate, hope this helps:

http://www.technologyreview.com/Energy/19323/?a=f

http://www.buchmann.ca/chap7-page1.asp
[HD2 General] shopshtc:
im using stock rom (not had it long) but i use the hd2 tweaks a good power saver tip turn off 3g as when connected it constantly looks for better signal,, also set data time out to like 10sec time out. always close open programmes.... i found these to nearly double batt time. also i noticed in hd2 tweak "power save" anyone know exactly what it saves?

hope this helps
[HD2 General] spiderhider:
thank you.

very interesting read. has this tech been incorporated into the current crop of smart phone batteries?
[HD2 General] pa49:
The reset procedure for the monitoring circuit does not give any increase in capacitity. It only calibrates the circuits to enable a more accurate %age readout.

You can only get the amout of power that the battery has and this can be maximised by charging the battery at every opportunity and for as long as possible (ie when not in actual use, althouigh charging when in use will also help).

Turning the phone off to charge will have no effect other than to allow faster charge rates. In fact Lion and LiPo cells enjoy being used and benefit from being treated in this way.

There is no first charge requirement with these batteries and the majority of advice (from phone shops, some manufacturers literature and some of those "in the know") is misleading.

There are very good reasons for a long charge before first use, but, they have nothing to do with battery performance, rather they are usage related and also take into acount the fact that the battery may not have sufficient charge to operate the phone. Having said that I have never had one phone that would not operate straight out of the box and this points to the manufacturers applying a "storage" level of charge after manufacture.

Remember that charging through USB ports will be a slower process as they are nominaly rated at 500mAh, whereas wall chargers are in the main 1000mAh.

This can sometimes give rise to problems when a battery that has been allowed to discharge to a low level. There is internal cut off circuitry to avoid low voltage damage to the cell. If the cell is pulled too low then it might not even recover at all and USB ports would certainly struggle to recharge from that state.

Hence the advice to never drain the battery if at all possible. And keep it well topped up at all times. Then when you do meet that occassion where you require maximum available capacity, you will get all the cell has to give.

Remember also that these cells have a finite life and from the moment that they are manufactured they are indeed "dying", even when not in use, so you may as well use them to the max while you can!

Heat production is a byproduct of both charging and discharging and is likely to occur when the device is being subjected to high stress levels. This could be when attemting to charge from a very low level or if the phone is being heavily used at any time.

Right now my phone is on charge and "full" and exhibiting slight warmth as there is little going on to require power usage.

However, if I was to make some calls or surf the internet then it would be discharging and charging at the same time and would then heat up considerably.

All this is quite normal.