Replacing phone battery with power supply
The battery might have a management IC inside it.  This is how some phones can tell if you are using a factory-original or aftermarket battery.  The chip might be just a gas gauge, or it could be a complete charge controller.