Legally reviewed by Chris Jeansonne, Criminal Defense Attorney, Dunham & Jones, Attorneys at Law, P.C. · Last reviewed: September 8, 2026
Police generally cannot search the digital contents of your phone merely because they arrested you. If officers ask you to unlock your phone, whether you must comply can depend on whether police have a warrant, whether access is voluntary or compelled, how the phone is secured, and developing constitutional law. Do not physically resist police or destroy evidence. Ask whether you are required to comply and request an attorney.

The Situation
The officer has your phone.
Maybe you were pulled over. Maybe the police arrested you. Maybe officers are investigating marijuana or THC found in a car and want to know whose it is.
Then an officer asks: “What’s your passcode?” Or: “Unlock your phone for me.”
Your phone contains years of your life. Messages. Photos. Email. Location information. Banking information. Search history. Social media. Payment apps.
Do you have to open it? Not necessarily, and the legal analysis can get complicated quickly.
Can Police Search My Phone Just Because They Arrested Me?
Generally, no.
In Riley v. California, the U.S. Supreme Court held that police generally must obtain a warrant before searching digital information on a cell phone seized during an arrest. The Court recognized that modern phones contain enormous quantities of highly personal information.
That does not mean police can never search your phone.
They may obtain a warrant. Consent may also authorize a search. Other recognized exceptions can apply in appropriate circumstances.
But taking physical possession of your phone and having legal authority to search its digital contents are not the same thing.
What If Police Just Ask Me to Unlock It?
A police request is not automatically a legal command.
If an officer asks for consent to access your phone, voluntarily unlocking it may affect what police are permitted to examine.
If you don’t understand whether police are requesting consent or ordering you to comply, you can ask, “Am I required to unlock my phone?”
You can also request an attorney.
Do not lie, physically interfere with police, or attempt to destroy evidence.
What If I Erase My Phone Instead of Unlocking It?
This is very different from simply declining to consent to a search.
Do not delete files, remotely wipe your phone, factory-reset the device, or use a feature designed to erase its contents after you know police are investigating you or seeking evidence from the device.
Texas law makes it a crime in certain circumstances to alter, destroy, or conceal a record, document, or other thing with the intent to impair its availability as evidence in an investigation or official proceeding. Tampering with physical evidence under Texas Penal Code Section 37.09 can be a felony.
A recent federal prosecution illustrates the distinction. In 2026, federal prosecutors accused a man of giving border agents a special “duress” password that allegedly caused his phone to erase its contents instead of unlocking. He has pleaded not guilty and is challenging the legality of the government’s actions, so the case does not establish that every use of such a feature is illegal. But it demonstrates the additional legal problems that can arise when refusing access becomes actively destroying data investigators are attempting to obtain.
You can assert your rights without destroying evidence. If police ask you to unlock your phone, you can ask whether you are required to comply, decline to voluntarily consent to a search, and request an attorney. Do not respond by deleting or altering what is on the device.
Did police search or demand access to your phone in Texas? Call Dunham & Jones 24/7 at 800-499-8455 for a free consultation.
What If Police Have a Warrant for My Phone?
A warrant can authorize police to search specified digital evidence.
But another question may remain: Can police force you personally to unlock the device?
That can implicate Fifth Amendment issues concerning compelled self-incrimination in addition to the Fourth Amendment rules governing searches.
Questions involving memorized passcodes, fingerprints, and facial recognition have produced evolving case law.
Someone facing compelled device access should get individualized legal advice rather than relying on a blanket internet rule that police “always can” or “never can” force a phone to be unlocked.
What If Police Want My Phone Because of Marijuana or THC?
This is where two legal issues can collide.
Imagine you’re driving through Texas with friends. Police find a THC vape cartridge or marijuana in the vehicle. Nobody claims it.
An officer sees four phones and starts asking questions.
Police may believe digital evidence can help establish who possessed the product or whether something more serious occurred.
Investigators may seek text messages, photographs and videos, social media messages, payment app transactions, location information, contacts, call records, or communications concerning the purchase or sale of marijuana, THC, or other cannabis products.
The fact that marijuana, THC, or a cannabis product was purchased legally somewhere else does not automatically make possession lawful in Texas.
Likewise, the fact that police suspect a drug offense does not erase constitutional protections surrounding your phone.
What Should I Do If Police Want to Search My Phone?
- Do not physically resist.
- Ask whether officers are requesting your consent or ordering you to comply.
- Do not volunteer your passcode merely because someone asks.
- Ask whether the police have a warrant.
- Do not delete, hide, remotely wipe, or destroy evidence.
- Request legal counsel if you are detained or under investigation.
What Shouldn’t I Do?
Don’t assume police can search everything because they possess the phone.
The physical device and the digital information stored inside it raise different legal issues.
Don’t lie about your passcode.
Exercising constitutional rights does not require making false statements.
Don’t remotely erase the device.
Attempting to destroy evidence can create additional legal problems.
Don’t physically fight officers over your phone.
A legal challenge belongs in court, not in a physical confrontation, which can quickly lead to additional serious charges.
What Happens If Police Search My Phone Anyway?
A defense attorney can examine how officers obtained the phone, whether they had a warrant, what the warrant authorized, whether consent was given voluntarily, how officers unlocked the phone, and what information they searched.
If evidence resulted from an unlawful search, your attorney can determine whether there is a basis to seek suppression.
When Could the Answer Be Different?
The analysis may change depending on whether you voluntarily consented, whether the police had a warrant, whether the warrant addressed device access, whether the phone used a passcode or biometric authentication, whether someone else owned or controlled the device, whether officers claimed an exception to the warrant requirement, whether police searched beyond the authorized scope, or whether investigators already knew specific information they expected to find.
Cell-phone search law is extremely fact-dependent.
Frequently Asked Questions About Police and Locked Phones
Frequently asked questions about police and locked phones in Texas.
Can the police search my phone after arresting me?
Can I refuse to give the police my passcode?
Can the police use my fingerprint or Face ID without my cooperation?
Does a warrant mean I must give the police my password?
Can police search my phone for marijuana or THC evidence?
What if my THC was purchased legally outside Texas?
Can the police read my texts?
Can I delete my phone before the police search it?
What if I already gave the police my passcode?
What if police searched more than the warrant allowed?
Can I ask for a lawyer before unlocking my phone if I haven’t been arrested?
If Texas law enforcement searched your phone or demanded access during a criminal investigation, Dunham & Jones can evaluate how the evidence was obtained and whether your constitutional rights were violated.
This article provides general information and is not legal advice. Every case depends on its particular facts, charges, criminal history, court orders, and applicable law.