An officer asks for the passcode to your phone. Refusing feels like obstructing an investigation. In Chinese law it is not a crime — but the phone itself is a separate matter.
If police in China ask for your phone passcode, the instinct is to hand it over rather than seem uncooperative. Three questions get collapsed into one in that moment: may they look through the phone, may they take it, and may you withhold the password. They have three different answers, and knowing them is the difference between protecting your rights and creating a problem that did not exist.
Going through a phone is a search of its contents, not merely an inspection of an object. As a rule investigators need a search warrant for it, and you may ask to see that paperwork first. The main exception is urgency during a lawful arrest or detention, where an immediate search may be permitted without a warrant presented in advance. That exception is narrow, and it does not turn every request into a lawful one.
The practical step is procedural, not confrontational: ask to see the warrant, note who is asking, and do not debate the law on the doorstep. A request made without paperwork is worth recording, because the record is what a lawyer later works from. See what to write down at the station and why the written record matters more than the conversation.
The phone may lawfully be seized, but only items related to the case may be taken, and the seizure follows a set form. Under the Criminal Procedure Law the officers must check the items in the presence of a witness and the holder, draw up an inventory on the spot, and give the holder a copy — the same Article 142 procedure that governs any seized property. Property confirmed to be unrelated to the case must be returned within three days under Article 145.
That copy of the inventory is the only contemporaneous record of what was taken and in what condition. It is also the document that makes a later challenge possible. We set out the full property rules — the three-day clock is counted from confirmation that the item is unrelated, not from the day of the search — in how to get frozen and seized property back.
There is no law in China that makes refusing to hand over a password a crime. You have the right to decline. Simply declining to share it is not an offence, and it should not be treated as an admission of anything. The police may still seize the device and attempt to unlock it with forensic tools, but that is their investigative step, not a compulsion on you to assist.
Keep the distinction clear: the device can be taken lawfully, the contents may be examined under a lawful search, and the password is a separate question on which the law does not compel an answer. Where a detainee does not understand the Chinese documents put in front of him, the same principle applies to any statement about the phone — ask for an interpreter and a line-by-line explanation before signing.
Do not voluntarily unlock the phone and let anyone scroll through chats or contacts. Once you show them, it is very hard to take back: messages, photos and contact lists become material the investigation can rely on, whether or not they relate to the case. Do not fight or resist aggressively. Physical resistance creates a separate problem and gives no protection to the data. Cooperate with the lawful steps and decline the rest calmly.
Four steps. Check the paperwork before consenting to any search. Get a receipt or inventory if the phone is seized, and keep the copy. Do not unlock or display the contents voluntarily. Do not confront the officers, but do not hand over the data freely either. If the situation escalates to a summons or detention, the next step is a licensed lawyer, and for a foreign national, consular notification — see the Article 36 right.
A phone holds a foreign national's whole life in China: banking, work, contacts, and years of messages in another language. Protecting it is not obstructing an investigation. It is exercising a right the law leaves open, in a way that leaves a clean record behind.
"What do you do if police in China ask for your phone passcode? There is no law that makes refusing to hand over your password a crime — but they may still take your phone. Three key questions: can you say no to them looking through your phone, can they seize your phone, and can you withhold the passcode?
First, going through your phone counts as a search. Normally they need a search warrant. Without one, unless it is an emergency during an arrest or detention, you have the right to ask for the search warrant first. Second, your phone may be seized, but they can only take items related to the case, they must give you a seizure receipt on the spot, and any unrelated property has to be returned within three days.
Third, you have the right to refuse to give your passcode. Just refusing to share it is not a crime — that is it. They can still seize the phone and try unlocking it with forensic tools.
A critical reminder: do not voluntarily unlock your phone and let them scroll through your chats or contacts. Once you show them, it is hard to take back. And do not fight or resist aggressively. Here is what to do: check their paperwork first, get a receipt if they seize your phone, do not unlock or show your phone voluntarily, do not confront them — but do not hand over your phone data freely. Cooperate with a lawful investigation and protect your rights at the same time."