I'm low on time right now and if I were to comment on it I am afraid I would omit important details. But the gist of it is that the student carefully made sure that privacy was kept intact, and that he carefully avoids a witch hunt.
In some countries, it is illegal for the police to do entrapment as part of their job. In some places its legal, but the fact that the accused got entrapped means that intentions are harder to prove, which then impacted the verdict.
Surveillance laws in turn generally don't cover this situation. If we ask our self if the thief has an reasonable expectation of privacy when stealing a phone, I would say no. If we ask if the thief has an reasonable expectation of privacy from a stolen phone, again I would say no. This leaves specific video video and audio surveillance laws, and I would say its quite unclear, through I suspect that commercial aspects could likely have some influence over it.