And when people want something that the CCP doesn't?Very simply by listening to what people want. The CCP is expert in conducting research, short and long-term studies. It is a party of 80+ million, and they feed up information on what what people want, how they feel, etc...
The government use the people's needs and wants as research data and consultation on what to do. It does a very good in using that information in realising Chinese aspirations and national goals. We could see the results by looking at China's track record and high approval for the CCP.
The China Model: Political Meritocracy and the Limits of Democracy by Daniel A. Bell
And when a local community or a minority wants something the majority doesn't want, and the CCP doesn't want? (We are looking at two independent object lessons of how China handles this at the very moment.)
And that's not even entering into the brave new world of data driven AI dependent social technologies – the potential of being able to "write the music" that makes the public move unbeknownst to itself why.
The European experience of discussing things as simple as building high-speed railroads with Chinese contractors, with huge experience of doing it in China, constantly brings home the cognitive dissonance when having to explain to the Chinese that in Europe you can't just take the land and move the people at will. They have not just rights but actual political influence. The problems never boil down to engineering, it's all about politics.
Even talking about how Chinese public opinion might find expression is redundant since the Chinese public don't even enjoy the rule of law.