Yep, China has already figured out how to work with its Muslim minority.
As I said like China is imperfect in treating its minorities with differing opinions (Tibet, Uighur, Hong Kong and Taiwan), so is many large democracies be it USA or India (where majoritarian politics works the same way as China, trampling on the rights of minorities finding loopholes in systems and bypass all safeguards with majority support). We all have a right to disagree with Chinese system, but don’t have a right to force it on majority of Chinese who believe in their own system.