Singapore invention could help extend life of smartphone batteries