I find that adhering to the NAACP recommendations on encounters with law enforcement would prevent a lot of deaths and injuries.
Know Your Rights | NAACP
Do stay calm and keep your emotions from getting the best of you. Be courteous even if the police officer is not. You will only give the officers more ammunition against you if you begin yelling, arguing or refusing reasonable directives.
Do carry identification at all times and be prepared to produce it.
Do keep your hands where the police officer can see them.
Do take photographs, if you are injured, and seek medical attention as soon as possible.
Do remember the officer's name and badge number as well as any witness information. Write down everything you remember about the encounter as soon as possible.
Don't run.
Don't touch the police officer.
Don't make any statements about the incident without first having spoken to an attorney. Reiterate your right to remain silent, if necessary.