There is a way to solve it. Eliminate or drastically reduce your encounters with the police. How? Don’t break the law, don’t walk around in a hoodie looking suspicious in 80 degree weather is a start. This is not about race like the dumb fucking media is selling.
Finally, the truth. Perhaps to just add something...don't resist arrest. Why is it that every single one of these videos starts with someone who believes they get to decide if they go to jail or no. Stop being stupid. Be courteous, be respectful and 99.99 percent you get that back. If you get a cop that hates the world and is an asshole, just go along with it and use the legal system.