it certainly looks like a thermistor. note that it is next to the battery so it is likely there to detect battery temperature rise during charging. I assume the left box is a microcontroller with ADC. when the temp rise occurs, it switches charging modes.