Report permission flags for all protections based on SDK

We added a couple of protection flags that also apply to
normal and dangerous permissions. These flags are folded
in the protection level breaking apps that directly and
compare against the protection constants. Apps that target
older than O SDK don't get protection flags folded into
the protection level.

Test: All permission tests pass
      Added a new test to ensure no protection flags reproted
      for normal and dangerous permissions


Change-Id: I72547b0146e6b6919803e33ff64b7208c4a255ad
(cherry picked from commit 852cf98cb8a4b9b56da84a96708c087996e119d2)
4 files changed