It looks to me that black chip is actually charging controller (because microUSB port)
and the modes are controled by those small 6-pin on the red pcb and 5-pin components on green pcb!

Just a guess.