Making a phone charger with Arduino

Assuming that you have a captive battery, you should also assume that the phone's firmware and charging circuit also monitors the battery temperature for safety and optimum charging.