Its seems to that he was thinking about his friend instead of himself. Did he handle it correctly? No, but we don't even even know why his friend was being arrested. Maybe he thought his friend was wrongfully being arrested and attempting to take up for him. That doesn't make him a thug, IMO. It makes him a kid making a poor decision in my mind.
When I was about his age, I came within an eyelash of being arrested for losing my cool with a cop. I was coming back from the drag races in Montgomery (over 100 miles away from where I lived) one night late and I pulled over for no reason at all, except we were young guys in a car after 1:00 AM. I wasn't speeding, I wasn't swerving, or doing anything else illegal. The cop pulled me over and I was polite. I gave him my registration, insurance, card and license. I told him where we were coming from and told him we were going home. He took everything back to his car while his partner stayed at the back of my with his hand on his gun. He came back (after I finding nothing out of order) and made us all get out the car and searched my car. They ramsacked my glovebox, console, and trunk and found nothing. When they were done, I asked why he pulled me over and why they searched my car, and he would give me no answer. I asked again, and they kind of laughed. At that point, I lost my cool and told him "I appreciate you bleeping tearing my car apart for no bleeping reason!" He spins around and gets in my face screaming "Say something else!" - "Just give me a reason, big boy!" - "I'd love to take your --- to jail!" My instinct was to was jump on him, and it took all I could do not to.
Here was I standing on the side of the road being harrassed and taunted for no reason whatsover by an 5' 8" idiot on a power trip. They obviously had nothing better to do and decided to throw their weight around on a car load of kids from out of town.
I talked to my dad the next day and told him what happened. He gave me the best advice I've ever heard concerning that situation. He told me that day to never attempt to hold court on the side of the road, in a parking lot, or anywhere outside of a courthouse, because you were sure to lose.
Since that night, I take encounters with cops (especially concerning young people) with an open mind...