Key points
- CPC s.116B: in a search under the Code, an Inspector or above must be given access to computerised data, including passwords.
- The lawfulness of the search matters.
- Ask for officer details and a seizure list.
- Never delete or alter data, and never ask others to.
- Get legal advice early.
Phones now hold most of our messages, photos, banking and location history. When police take a phone during an arrest or search and ask for the passcode, people panic: Do I have to give it? What can they look at? When will I get it back?
What does the law say?
Section 116B of the Criminal Procedure Code (inserted in 2012) provides, in summary, that a police officer not below the rank of Inspector who is conducting a search under the Code shall be given access to computerised data. "Access" is defined to include being provided with the necessary password, encryption code, decryption code, software or hardware to enable the data to be understood.
Two points follow:
- The provision applies in the context of a search under the Code, so the lawfulness of the search matters.
- It is not, by itself, a general power to stop anyone and look through their phone.
Refusing to give access in a lawful search may have consequences, and some laws make obstruction an offence. A lawyer can advise on your specific situation.
What should I do if police ask for my phone or password?
- Stay calm and polite. Do not resist physically.
- Ask for the officer's name, rank and station, and what the search is for.
- Ask for a list of the items seized, including the phone's make, model and serial number if possible.
- Do not delete, wipe or alter anything on the phone or in cloud accounts. Destroying evidence can be a serious offence in itself, and it will harm your position.
- Do not lie about the phone or its contents.
- Ask to contact a lawyer or family member. See your rights when arrested.
Have a question about your own situation? Ask on WhatsApp
What about privileged or very private material?
If your phone contains communications with your lawyer, or highly sensitive material unrelated to the investigation, tell your lawyer. Issues of privilege and scope can be raised through the proper channels. Do not try to deal with it yourself by deleting material.
How is phone evidence used in court?
Data extracted from phones is often produced through forensic reports. The Evidence Act 1950 has provisions on documents produced by computers. Your lawyer can examine how the data was extracted, whether the chain of custody was maintained, and whether messages are complete and in context.
How do I get my phone back?
Seized items may be retained as long as they are needed for investigation or trial. Your lawyer can write to the investigating officer or, where appropriate, apply to court. Keep the seizure list.
Common mistakes
- Remotely wiping the phone after it is seized.
- Asking friends to delete group chats.
- Arguing with officers at the scene.
- Giving a statement about the phone's contents without advice.
When to speak to a lawyer
As soon as your phone is seized or you are asked for a password, especially if you have been arrested. You can contact us; every case depends on its facts.
Frequently asked questions
Can police check my phone at a roadblock?
Section 116B concerns searches under the Code. Whether a particular check is a lawful search depends on the circumstances. Stay calm and ask for the basis.
Do I have to give my fingerprint or face unlock?
The law defines access broadly. Get advice on your specific case rather than refusing at the scene.
Can they read my WhatsApp messages?
If they lawfully access the phone, data on it can be examined for the investigation.
Can I ask for a copy of my data before they take the phone?
You can ask. Whether it is allowed is up to the officers; your lawyer can follow up.
Will deleted messages be recovered?
Often they can be. Deleting messages after an investigation starts can also be treated as destroying evidence.
Sources & fact check
Legal points in this article were checked against the primary sources below. The law can change; this is general information, not legal advice.
- Criminal Procedure Code (Act 593), Attorney General's Chambers Laws of Malaysia
- Evidence Act 1950 (Act 56), including section 114A, AGC Laws of Malaysia
Fact-checked on 17 Oct 2026
Facing a similar situation? WhatsApp us a short summary. Please do not send confidential documents until we confirm we can act for you.
Related practice area: Criminal defence

