Republican presidential candidate Donald Trump criticized Apple on Wednesday for refusing to unlock one of the iPhones belonging to one of the San Bernardino shooters.

“I agree 100% with the courts. In that case, we should open it up,” Trump said in an interview with Fox News on Wednesday, according to CNN.

Apple is resisting a federal court order demanding that the company help investigators unlock the encrypted phone belonging to the perpetrators of the mass shooting in San Bernardino, Calif., that left 14 dead in December. In a letter posted Tuesday, Apple CEO Tim Cook said that bypassing the security on the phone would make every iPhone more vulnerable to hackers.

Trump said the issue was a matter of common sense.

“Apple, this is one case, this is a case that certainly we should be able to get into the phone,” he said, according to CNN. “And we should find out what happened, why it happened, and maybe there’s other people involved and we have to do that.”

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Katie Reilly at Katie.Reilly@time.com.