I have an Bell Canada XT860. After a couple of years of use the battery could only last a few hours so I bought a new battery.

The new battery seems to work as good as new, but the battery level displayed by Android drops rapidly like it was the old battery. It drops to 1% in a few hours, but the phone keeps working for the rest of the day without shutting down. Is there a way to tell the phone to that is has a new battery and stop treating it like it was the old one.

The problem existed on the stock ROM. When I installed the Minimoto ROM, it still didn't work.