Amazon has abandoned a legal battle to protect “Alexa” under the First Amendment — and agreed to hand over data from an Echo device to police in Arkansas — after a murder defendant gave them permission to do so.

A court filing made public Monday shows that the Seattle-based tech giant dropped its ongoing fight against law enforcement in Bentonville, Ark. last week, just days before a hearing was set to determine whether any of the data was even pertinent.

see also

The Amazon Echo is a voice-activated gadget that “listens” and records key words and phrases — and stores them on the device.

Investigators ultimately believe that Bates’ model may have recorded what happened on the night he allegedly killed Victor Collins at his home in November 2015.

The Arkansan, who is charged with first-degree murder, claims to have found the man dead in his hot tub on the back patio after a night of heavy drinking. Investigators later determined that Collins’ cause of death was homicide by strangulation, with a contributing cause of drowning.

Amazon cited its customers’ privacy rights and the First Amendment as reasons for declining to cooperate with authorities.

A hearing had been scheduled for Wednesday to determine whether any of the information on Bates’ Echo should be used during the trial.

see also

In a prior court filing, Amazon wrote that the government needed to prove why they needed the data before they could hand it over. The company claimed that local law enforcement failed to do this and urged a judge to quash their subpoena.

“Such government demands inevitably chill users from exercising their First Amendment rights to seek and receive information and expressive content in the privacy of their own home, conduct which lies at the core of the Constitution,” Amazon said.

A spokesperson told PCMag in December that the only way they would ever release customer information would be if they received a “valid and binding legal demand properly served on us.”

The case between Amazon and the Arkansas police is very similar to the legal battle that took place between Apple and the FBI in early 2016, when the tech company refused to unlock an iPhone used by San Bernardino shooter Syed Farook.

In that instance, authorities managed to find another way to enter the phone through a third party.