Oh boy....
Dr.Evil said:
....the guy is charged with selling some stuff and the only evidence that he sold anything rests on the computer of a person who recently died in a drug overdose of a completely unrelated matter. the cops have a way of somewhat authenticating that my buddy was the one who wrote the things that were saved on the dead man´s computer....
Your friend needs to get a different attorney. Either a new public defender on the grounds that the one appointed is not zealously advocating for his client or just find a way to pay for a damn good private attorney.
Check out the guys at
http://www.steroidlaw.com/.
The key here is "what" do the cops actually have? The problem with e-docs is what they really mean. If I was a drug pusher and said in a note file that you sold stuff for me, that's incriminating, but can it be proven true? I'm dead, you have no evidence in your life that those past events were true. Is that justification to put you in jail? I don't know how courts will see that.
Now, if you sold stuff for me and gave me written stuff I scanned and saved an image of into a computer file, that's pretty damaging, and it can be authenticated by comparing handwriting.
I think the weakness of the police's case is that they are useing evidence from a dead man's computer CLAIMING your friend did something illegal. The person who inputted that data is dead. If the cops can corroborate it independently, it's a moot point. If they can't how credible it is by itself is key.
Have your friend get a new lawyer. If he's facing serious jail time (heck, any jail time) it's worth the $$$. People with high-priced lawyers rarely go to jail compared to people with cheap or free lawyers.