Next week, the U.S. Supreme Court is expected to hear arguments over whether police can search a person’s cellphone without a warrant upon arrest. That will give the justices a rare opportunity to draw a bright line about what police can do in the digital age.

The court should conclude that searching smartphones should require a warrant. That is what law enforcement needs in most cases to search a home.

More than 50 percent of Americans now carry smartphones, and those phones’ search histories, photos, emails, chats and contacts offer not only a window on the owner’s mind, but also can document their every step and communication.

Courts have given mixed rulings how the Fourth Amendment, which protects people from unreasonable search and seizure, applies to cellphones. The right to privacy in these cases conflicts with the important public interest in police solving and preventing crimes.

The high court will have to balance these two interests in a decision that makes sense not just for smartphones, but also for tablets, laptops and the new gadgets down the road.

“Some members of the court will certainly try to consider the place mobile devices play in modern life,” said Jennifer Granick, director of civil liberties at the Stanford Center for Internet and Society.

The justices’ ruling will involve two cases. In 2007, Massachusetts police searching a man’s rudimentary flip phone noticed a phone number that led to the suspect’s home where they found drugs, cash and guns. The 1st Circuit Court of Appeals agreed that the search violated his Fourth Amendment rights. The government is appealing the decision.

In 2009, San Diego police stopped David Riley for expired registration tags. A search of his smartphone revealed images tying him to a gang shooting and other evidence. Convicted of attempted murder and serving a 15-year sentence, Riley has challenged the evidence police found on his cellphone. In a 5-2 decision, the California Supreme Court upheld the cellphone search in the case.

In taking on the Riley case, the high court said it would decide the narrow question of whether evidence admitted at Riley’s trial as part of the smartphone search violated the Fourth Amendment.

Legislative attempts to clarify the rules in California have not succeeded. In 2011, state Sen. Mark Leno, D-San Francisco, proposed a bill that would have required a warrant to search cellphones. Gov. Jerry Brown vetoed it.

Officer are permitted to look at or take objects to prevent destruction of evidence, which has led to seizures of arrestees’ address books, wallets, diaries, notes and pagers. The U.S. government has argued that new technology like mobile devices shouldn’t upend that tradition.

In fact, it argued in a brief filed this month in the Massachusetts case that advances in technology makes it even more urgent for law enforcement to be able to look at and seize an arrestee’s smartphone. An arrestee can lock or wipe the phone’s data, or alert someone else to remotely wipe the data.

“Basing a novel Fourth Amendment restriction on an incomplete understanding of a fast-evolving technology risks awarding offenders, and especially sophisticated criminal organizations, a powerful new tool to evade apprehension and punishment,” the government said.

But Jim Dempsey, vice president of public policy at the Center for Democracy & Technology, a Washington, D.C., public interest group that filed a brief in both cases arguing for a warrant for cellphone searches, says that police can take a phone and protect it before an arrestee can wipe out the data. Then, they should get a warrant.

“We are not really asking for special treatment for technology,” said Dempsey. “We are saying that the data in your pocket is entitled to the same protections as the filing cabinet in your house, or a briefcase you carry with you.”

No doubt the smartphone is the Mother lode of information for law enforcement. It provides access to a person’s entire life, the past, present and future. And that is why the court should require a warrant for police to riffle through one.

Michelle Quinn is a former business columnist for the Bay Area News Group. Prior to that, she was the Silicon Valley correspondent at Politico covering tech policy and politics. She has also covered the tech industry at the Los Angeles Times and the San Francisco Chronicle. She was a blogger for the New York Times.