Sealed in batteries on smartphones and Surface tablets. The device will eventually reach a point where it won’t even boot when plugged in because the charger connection isn’t actually wired to power the main board without going through the battery first (most smartphones) or the device consumes more power than the port can deliver (Surface).