Built-in lithium-ion battery or AC adapter