Not even close to the same. See how Apple resisted the federal government's requests to access the San Bernardino terrorist's phone: https://www.npr.org/series/469827708/the-apple-fbi-debate-ov...
Something like this could never happen in China. Tim Cook would've be in a state prison in a matter of days.