OSDN Git Service

Report permission flags for all protections based on SDK
authorSvetoslav Ganov <svetoslavganov@google.com>
Thu, 27 Jul 2017 19:53:18 +0000 (12:53 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Fri, 28 Jul 2017 01:46:04 +0000 (01:46 +0000)
commit852cf98cb8a4b9b56da84a96708c087996e119d2
tree25faed4dbcba58d5a1889f41bb6d91fe8b88bc1a
parent81a1d589babb48247689d84c0edb14d9b813297f
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

bug:62755026

Change-Id: I72547b0146e6b6919803e33ff64b7208c4a255ad
core/java/android/app/ApplicationPackageManager.java
core/java/android/content/pm/IPackageManager.aidl
services/core/java/com/android/server/am/BroadcastQueue.java
services/core/java/com/android/server/pm/PackageManagerService.java