To get a court order to unlock a phone, you file a request with the court that has authority over your matter and show a judge that the device likely holds information tied to a specific legal question. The filing looks different depending on who you are. Police and prosecutors apply for a search warrant supported by probable cause. Parties in a civil case ask through discovery. Family members of someone who has died usually go through probate court to get an order the phone’s manufacturer will honor. All three paths run through a judge, and none of them succeed on a vague request.
Criminal Investigations: Applying for a Search Warrant
In a criminal case, the Supreme Court held in Riley v. California (2014) that police need a warrant before searching the contents of a cell phone, even after a lawful arrest. Officers can hold the phone while they apply for one, but they cannot browse it without judicial authorization outside of narrow emergencies like an active kidnapping where the device might reveal a victim’s location.
Federal Rule of Criminal Procedure 41 sets out the mechanics. A law enforcement officer or government attorney submits a sworn affidavit to a magistrate judge. The affidavit has to explain what crime is being investigated, why there’s reason to believe evidence of that crime sits on the particular device, and what specific data investigators expect to find. The judge can put the officer under oath and ask questions before deciding. If the judge finds probable cause, the warrant issues and must be executed within 14 days. In urgent situations, Rule 41 allows warrants by telephone or other electronic means, compressing the timeline from days to hours.
State courts follow parallel procedures under their own rules. The requirement is the same: a sworn statement establishing probable cause, reviewed by a neutral judge.
What the Warrant Must Say
The Fourth Amendment’s particularity requirement means a phone warrant cannot simply authorize a search of “the device.” Courts increasingly demand meaningful limits so investigators do not rummage through everything when only specific data matters. Effective limits that courts have endorsed include:
- Time restrictions that confine the search to the period relevant to the alleged crime
- App-specific boundaries authorizing a search of text messages or a particular messaging application rather than the entire device
- Search protocols specifying how forensic examiners will filter data so they only review files connected to the investigation
A warrant broader than what the affidavit supports can be challenged. If a court later finds it overbroad, evidence from the search may be suppressed and kept out of trial. Careful drafting is not a formality; it is what keeps the resulting evidence usable.
Civil Cases: Compelling Phone Data Through Discovery
You do not need a criminal case to seek a court order for phone data. In personal injury claims, employment disputes, divorce proceedings, and other civil matters, one party can ask the court to compel the other to produce data from a locked phone. Federal and state discovery rules allow requests for electronically stored information, phone contents included, but the request has to be proportional and specific.
A blanket demand for everything on someone’s phone will almost certainly be denied. Courts evaluate these requests on several factors:
- Relevance backed by actual evidence rather than speculation that the phone data is likely to contain information bearing on the dispute
- Narrow scope, meaning requests limited to specific conversations, date ranges, or applications succeed far more often than broad demands
- Least intrusive method, since courts prefer approaches that avoid handing over the physical device, such as extracting specific electronic records or letting a neutral forensic examiner pull targeted data
Come to the hearing with a request that lists specific apps, specific date ranges, and specific types of data. That kind of proportionality analysis matters as much as relevance. Requests that look like fishing expeditions are the ones judges deny.
If the Other Side Refuses
Federal Rule of Civil Procedure 37 gives the court several tools when a party defies a discovery order. The judge can treat the disputed facts as established against the noncompliant party, prohibit that party from introducing certain evidence, dismiss the case, or enter default judgment. The court can also hold the refusing party in contempt and order them to pay the attorney fees caused by the noncompliance.
Destroying data after a litigation hold is spoliation. Courts may issue adverse inference instructions telling the jury to assume the destroyed evidence was unfavorable to the person who destroyed it.
Accessing a Deceased Person’s Phone
Many people looking for a court order are not tied to any investigation. They are grieving family members trying to reach photos, messages, or accounts belonging to someone who has died. The process varies by manufacturer, but a court order is usually required unless the deceased set up a digital legacy plan in advance.
Apple Devices
Apple has offered a Legacy Contact feature since iOS 15.2. It lets users designate someone who can access their account data after death using an access key and a death certificate. If the deceased set this up, no court order is needed.
Without a Legacy Contact, Apple requires a court order that specifically:
- Names the deceased person and their Apple Account
- Identifies the person requesting access as the legal representative or heir
- States that the deceased was the account user
- Directs Apple to assist in providing access
Even with a compliant order, Apple cannot remove a passcode lock without erasing the device. The order gives you account data and cloud-stored content, but a passcode-encrypted handset may still need a factory reset before it can be used again.
Google Accounts
Google’s Inactive Account Manager serves a similar planning function, letting users designate trusted contacts to receive account data after a period of inactivity. Without that setup, Google will consider requests from immediate family members and legal representatives to close an account or, in some cases, provide content from it. Google evaluates these requests case by case and does not guarantee access.
For either platform, the fastest reliable path is a probate court order drafted by an attorney familiar with digital estate matters. Vague language about “access to digital assets” often fails to satisfy the company’s legal department. The order has to name the account, name the requesting party, and describe the authority being granted in specific terms.
Can the Owner Be Forced to Unlock It?
Having an order to search a phone is not the same as being able to force its owner to unlock it. The Fifth Amendment protects against compelled self-incrimination, and how that protection applies to phone unlocking is one of the most contested questions in criminal law right now.
Passcodes
Most courts hold that compelling someone to reveal a passcode is a testimonial act because it forces the person to disclose the contents of their mind. The Congressional Research Service has noted that courts typically treat this the way they would treat forcing someone to reveal a safe combination. The knowledge itself communicates something incriminating about the person’s relationship to the device.
Biometrics
Whether police can force you to press a finger to a sensor or hold the phone to your face is unsettled. Two federal appeals courts have split:
- In United States v. Payne (2024), the Ninth Circuit held that pressing a thumb to a phone sensor is a physical act requiring no mental effort, comparable to a blood sample or a booking fingerprint. Under this view, compelling a biometric unlock does not trigger Fifth Amendment protection.
- In United States v. Brown (2025), the D.C. Circuit reached the opposite conclusion, reasoning that unlocking a phone with a fingerprint communicates the person’s knowledge of how to access the device, control over it, and which finger serves as the password. That makes it testimonial.
The split means the Supreme Court will likely take the question. Until then, the answer depends on which federal circuit or state you are in.
The Foregone Conclusion Doctrine
Even when compelled unlocking would normally be testimonial, courts sometimes allow it under the foregone conclusion doctrine from Fisher v. United States (1976). The idea: if the government already knows what the act of producing the unlocked phone would reveal, the testimony adds nothing new. Courts split sharply on how much the government must know first.
The Eleventh Circuit takes the strict view, requiring the government to show with reasonable particularity that specific files exist on the device, in a specific location, and are authentic. If investigators are hoping to find something useful, the exception does not apply. Other courts take a lenient view, requiring only clear and convincing evidence that the suspect can unlock the phone. Since most people can unlock their own phones, that standard is easy to meet. Which test governs in your jurisdiction can determine the outcome.
An Order Does Not Guarantee Access
Modern smartphones use encryption that even manufacturers cannot bypass. Apple’s hardware-based security stores encryption keys in a way Apple itself cannot extract, and Android devices use similar protections. A warrant directed at the manufacturer will often produce cloud-stored data but not the contents of a locked, encrypted handset.
When the owner will not or cannot provide the passcode, investigators turn to forensic extraction tools. Cellebrite and Grayshift (maker of GrayKey) sell hardware and software that exploit device vulnerabilities to pull data off locked phones. Government contract data shows Cellebrite’s UFED licensing can run into the hundreds of thousands of dollars. Individual forensic extractions through private firms typically cost from roughly $1,500 for basic collection to $3,000 or more for deep forensic recovery including deleted data.
These tools are not guaranteed to work. Every operating system update can patch the vulnerabilities they rely on. An extraction that succeeded on last year’s software may fail on the current version. Agencies with smaller budgets sometimes send devices to regional forensic labs run by the FBI or state bureaus of investigation, where wait times can stretch for months.
Consequences of Refusing to Comply
A person who defies a court order to unlock a phone faces contempt. In the criminal context, this is typically civil contempt, meaning the sanction is coercive rather than punitive. The person sits in jail until they comply, and the sanction ends the moment they unlock the device. Courts describe it as holding the keys to your own cell.
Courts have jailed individuals for refusing to decrypt devices, though duration is contested. Some courts have capped coercive incarceration at 18 months, reasoning that indefinite confinement crosses from coercion into punishment. Others have allowed longer periods. There is no bright-line federal rule on the maximum.
Companies and service providers that refuse to comply can face substantial daily fines. The government may also seek additional orders under the All Writs Act, an 18th-century statute authorizing federal courts to issue writs necessary in aid of their jurisdiction, though courts have recognized limits when compliance would impose an undue burden.
Steps to Take Before Filing
Before pursuing an order, check whether simpler options exist. Written consent from a cooperative phone owner eliminates the need for a warrant in criminal cases and simplifies discovery in civil ones. If the owner has died, check whether they configured a Legacy Contact with Apple or an Inactive Account Manager plan with Google. If the phone belongs to a minor child, parental access rights may apply depending on jurisdiction.
When a court order really is the path, the quality of what you file is what determines the outcome. For law enforcement, that means an affidavit that identifies the crime, ties the specific device to that crime with actual facts, and describes what data investigators expect to find. For civil attorneys, it means a request narrow enough to survive a proportionality objection: specific apps, specific dates, specific categories of data. For families of a deceased person, it means an order drafted to match the manufacturer’s stated requirements, ideally by a probate attorney who has done it before. Sloppy drafting is the reason most of these requests either get denied outright or produce orders that fail when the phone company reviews them.