This depends on the province. While some provinces do not prohibit camping, others do.
For example, it is at present not allowed to camp in Xinjiang province and Tibet province in most places. In those provinces are regulations in place making it for foreign foreign visitors mandatory to be registered in hotels. While you can not camp in the wild, you are permitted to stay overnight in your vehicle on hotel parking lots in case the hotel can do the registration of the foreign traveller with the local police. Usually, they charge a small amount for this and also parking fee.