I would have hooked the smartphone to a small solar panel. The natural daylight cycle would have made sure that the smartphone kept having charging and discharging cycles.
I doubt the traffic hitting it would be sufficient to drain the battery overnight.
an even smaller https://solar.lowtechmagazine.com/about/the-solar-website/ ?