He was called China's answer to Steve Jobs for taking Xiaomi from scrappy startup to an electronics giant known for its smartphones.