The solution for US: white areas with white cops, blacks areas with black cops. Don't mix.
Of course, areas must be clearly separated. There would be trouble if blacks enter a white area and have problems with white cops, you don't want cities burning, so blacks shouldn't be allowed in white areas, and whites shouldn't be allowed in black areas.
That would solve racial problems in US.