A recovered smartphone at the center of a dispute between the families of two Florida teens who went missing during a fishing trip will be examined by its manufacturer, Apple, in an agreement hammered out during a hearing Friday, according to a local media report.

If Apple is able to retrieve anything from the water-damaged phone that is pertinent to the day the boys disappeared — including photographs, texts and social media posts — the data will be given to a judge, who will decide if it is evidence and whether it may be shared with the families, according to a report by WPLG-TV in Miami.

The agreement puts to rest for now a row between the families of Austin Stephanos, 14, who owned the iPhone 6 handset, and his friend Perry Cohen, also 14, who borrowed it to communicate with his family the day they disappeared in July 2015 off the Atlantic Coast of southern Florida, according to the report.

The smartphone was recovered in March when the boys’ abandoned boat was discovered by a Norwegian crew near the Bahamas, WPLG reported. The phone was inside a locked box and was heavily damaged by water, the report said.

Cohen’s family wanted the Florida Fish and Wildlife Conservation Commission to treat the phone as evidence in an open missing persons case, but the agency instead returned it to Stephanos’ family, the station reported.

Cohen’s mother, Pamela Cohen, sued Stephanos’ family to have the phone returned to the state and allow her access to the phone’s contents, the report said.

In an emergency hearing Friday, the two sides agreed to turn over the iPhone to Apple and let the judge decide what to do with any data the company is able to retrieve, the station reported.

The two boys, neighbors and fishing buddies in their Palm Beach County hometown, were last seen July 24, 2015, buying gasoline for their 19-foot, single-engine vessel before launching in Jupiter, Florida.

Phone records indicate the phone went offline shortly after 1 p.m. local time and never came back on, the station reported.