It looks from some of the images that the feds had access to the unlocked phone(s). But, yeah, in my admittedly fairly quick read of the affidavit, it wasn't particularly clear--perhaps deliberately--how exactly the feds gained access to all the messages they're using as evidence. (Assuming the defendants challenge how the FBI obtained that info, IANAL but it may make sense to give as few details as possible at this stage.)