I was in Beijing, in July and coming out of the subway, by Tianamin Square, we were stopped and our backpack was examined. Our tour guide was upset and complained that the people doing the checks aren't even police officers.
Half the group got by, so they were just picking a few to examine.