China’s Huawei says it has reached global patent licensing deal with Xiaomi