P0_17 is connected to the CHG pin of the charge controller and can detect whether charging is in progress. The CHG terminal is also used to light the green LED that indicates charging is in progress.
Isn’t the increase in current due to the green LED lighting up to indicate charging, rather than because P0_17 is set as an input pin?