24/7 Emergency Line — Detention & Arrest in China
Call / WhatsApp: +86 189 1820 8657

Refusing to Give Police Your Phone Passcode in China: Is It a Crime?

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.

By Maggie Ma (Ma Xiuying), Foreign-Related Criminal Defense Team, Zhiheng Law Firm (Shanghai) · Updated 27 November 2026 · 6 min read

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.

Consent changes everything. A voluntary unlock is not a search that needs justification — you have opened the phone yourself. That is why the single most damaging act in this situation is usually not refusal, but handing the phone over unlocked.

Seizing the Phone Has Limits

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.

Withholding the Passcode Is Not an Offence

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.

Two Things Not to Do

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.

Neither refusal nor cooperation requires a speech. A short, calm statement — that you will not unlock the device voluntarily, that you would like the paperwork and a receipt — protects more than an argument about rights at the scene.

The Practical Checklist

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.

Full Transcript (Edited for Readability)

"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."

Questions We Hear From Families

Is refusing to give police my phone passcode a crime in China?
No. There is no offence of withholding a password, and simply declining to share it is not a crime or an admission. Police may still seize the device and try to unlock it with forensic tools, but that is their investigative step rather than a legal duty on you to assist.
Do police need a warrant to search a phone in China?
Examining a phone's contents is a search and normally requires a search warrant, which you may ask to see before consenting. A narrow exception allows an immediate search in urgent circumstances during a lawful arrest or detention. A voluntary unlock removes the need for any warrant, because you opened the phone yourself.
Can police seize my phone, and what paperwork should I get?
Only items related to the case may be seized. Officers must check the items with a witness and the holder, prepare an inventory on the spot and give the holder a copy under Article 142 of the Criminal Procedure Law. Property confirmed unrelated to the case must be returned within three days under Article 145. Ask for that copy and keep it.
Should I unlock my phone if the officers ask nicely?
No. Do not voluntarily unlock the device or let anyone scroll through chats, photos or contacts — once shown, that material is very hard to take back. Decline calmly, ask for the paperwork and a receipt, and do not physically resist. Cooperation with lawful steps and protection of the data are compatible.
What should a foreign national do if the encounter escalates to a summons or detention?
Keep the inventory or receipt, note the officers' names, badge numbers, time and place, and ask for a licensed lawyer. A foreign national who is detained also has the right to have their consulate notified under Article 36 of the Vienna Convention on Consular Relations, and may request an interpreter for any statement they cannot read.

Asked for a Phone Passcode, or a Phone Already Taken?

Tell us what was asked, whether a warrant or inventory was shown, and what was signed. A licensed lawyer will explain which steps were lawful and how to protect the record — in English, usually within 24 hours.

🚨 Detained in China? WhatsApp a Lawyer Now