Self-healing smartphone