A common problem in battery-operated devices is the battery management, that is the control of the charge in the case of lithium-ion cells.
Portable electronic manufacturers have to ensure a very long battery life, for this reason it is necessary to introduce both battery protection circuitry and battery charger control circuitry inside the cell.