btw... even if it's possible to overload the battery through software , it's not possible to predict when and how the battery will fail. actually it's not easy to set the battery on fire unless it has some defect.
so let's sum up:
1. you need a crappy stupid implementation of the battery charger/control circuit
2. vulnerable software to let the attacker in
3a. identify the phone on the IP network in order to attack (nearly impossible - most of the carriers are using private IP ranges and NAT)
3b. have direct access to the victim's wifi network in order to break into his phone (if the above is not possible because of NAT)
4. infect the phone
5. hope that his battery has a deffect and it's vulnerable to overload/overheat explosion.
6. wait till the battery fails
7. start over because the victim visited a phone repair shop (his battery is draining quickly and phone gets hot) where the tech reflashed his phone.
so it's unrealistic that anyone will be attacked this way. (btw.. i wasn't even watching that TED talk, because this battery explosion attack is a

)