Ending the war on drugs and the war on victimless crimes would end the war on cops. Everything else is beating around the bush.
People don't like cops not because cops don't arrest real criminals... it's because instead they arrest peaceful people.
Today the chances of an average person being harassed or arrested by police are leaps and bounds greater than being robbed or assaulted by a non-government worker. I've been pulled over for speeding on an open road going 5-10 miles over the limit 3 times in my life, I've never been attacked or robbed (in all cases judge threw out the tickets, but i will never get the time i wasted during the stops and going to court, that time was stolen from me). If I do get attacked or robbed I don't expect cops to be helpful. So, what ARE they there for? For all practical intents and purposes to harass and arrest peaceful people mostly, people who harm no one.