Chinese smartphone and appliance maker Xiaomi announced late Thursday a new operating system — as it plans to release its own car.