How can I get a certificate of no criminal record?

english.shanghai.gov.cn

A: People who have lived in China for a cumulative of 180 days or more since their entry into the country can request a criminal record check.

To apply for the check, one must present the original passport, residence permit and a registration form of their temporary accommodation in the city.

In cases where an expat authorizes an agent to act on their behalf, the agent must provide the expat's original passport and residence permit, as well as the agent's valid ID card, and a signed authorization document that is authenticated by the expat's country's embassy or consulate), as well as a registration form of temporary accommodation in the city where the inquiry is made. 

 

Source: Shanghai Municipal Bureau of Public Security Songjiang Branch Exit-Entry Administration Office