How best to power a tablet?

This is only software and should be possible to do with any device that’s not totally locked down.