How can I get a certificate of no criminal record?
A: Applicants who have stayed in China for at least 180 days on a residence permit since their first entry, and whose permit was issued in Shanghai or who actually resided in the city during that period, are eligible to request record inquiries.
To apply for an inquiry, one must present the original passport, residence permit and a registration form of their temporary accommodation in the city corresponding to the inquiry period.
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: Exit-Entry Administration of the Shanghai Municipal Bureau of Public Security