Understandably but that's often because of a feedback loop by their bad behavior. If those troubled neighborhoods collectively saw the cops as actually serving the community (rather than terrorizing it), they would likely be welcomed and safe.
Also, the lack of cooperation in poorer neighborhoods is largely due to respect for, or fear of, the criminals.
There's a lot more layers here - this 'shift' would require tons of slain officers, a lack of respect for the law, so on and so forth.
While I agree officers should do their best to serve the community, disarming them in dangerous areas isn't necessary to accomplish it.