Advice on friends: don't have them.
Advice on getting arrested: shut the fuck up and don't answer a single question without a lawyer present.
Advice on kiddie porn possession: it's probably not easy to come by
Advice on trusting a "friend" who gets knocked for having kiddie porn that's not easy to come by: don't do it... You shouldn't have friends, anyway.
I don't know much about pedophiles, other than knowing that they're going to be put in p.c. if they do any time, but i do know about criminals, and they always have a story about how it wasn't their fault, and how there is some crazy conspiracy to catch them... But what the fuck are they doing in the situation?
No one is ever guilty. But guilt doesn't matter in court... It's what they can prove. And dumbass is already taking so he's locked into his story, so it better be the one that saves him because he's there's no other alternative.
Just so you know, your lawyer can create doubt in a million ways and provide hundreds of stories that would tend to be exculpatory... But a defendant only gets one shot and that's how story forever on record.
But who knows, maybe he's the one innocent creep that got some random email that they clicked on?