CUPERTINO, CA — Apple confirmed it has fired senior battery engineer Daniel Li after he developed a prototype iPhone battery that lasted more than two hours on a single charge.