The court will hear an appeal from David Riley, a San Diego man who was stopped by the police, initially for having expired registration tags. A subsequent search of his cellphone tied him to a gang shooting. The California Supreme Court by a 5-2 decision upheld the search of cellphones in a related case.

The court will also hear the Justice Department’s appeal of a ruling that rejected the search of a cellphone that was taken from an alleged drug dealer.