Police found Aaron Ryan had breached a sexual harm prevention order when they checked his phone.