Currently they avoid criminal liability in a number of ways:
- They are never arrested - other police simply fail to arrest them
- They are never indicted - DAs across the country are extremely reluctant to press charges
- Charges are dropped by grand juries - in some states, like NY, all felonies must be confirmed or dropped by a grand jury unless the defendant waived their right. A DA has full power to effectively force a drop by portraying a weak case to a completely secret grand jury, publicly washing their hands of the decision while still getting the result they want.
Then, when a DA is elected who actually says they will hold police accountable they often simply will not (as in Jackie Lacey, Los Angeles’ previous DA) or if they make basically any strides toward actually investigating police they will be stonewalled and face a recall with support from the local PD and/or SD (as in LA’s current DA, George Gascon).
Police are given unbelievable rights: we will see over and over again that officers with complaints will never actually see them investigated and even sustained complaints have barely any consequences. Additionally if they are implicated in a serious crime on the job they often have union rules barring them from being interviewed / interrogated until after a cooling period (this blew my mind).
Compare this to basically any other profession, even so much as yelling at a client or failing to help customer who asked would be a final strike almost anywhere else.
The biggest problem may be that the US justice system is so unbelievably cruel that police refuse to ever put one of their own through that type of hell.