There is a huge difference between planting evidence vs. CYA—like criminal charges vs. departmental discipline.
This demonstrates the downside of reliance on technology—there is still room for human error.
It will be very awkward when he has to explain to his cell mate why he is prison.