OSDN Git Service

Report permission flags for all protections based on SDK
authorSvetoslav Ganov <svetoslavganov@google.com>
Fri, 28 Jul 2017 05:46:53 +0000 (05:46 +0000)
committerSvetoslav Ganov <svetoslavganov@google.com>
Fri, 28 Jul 2017 05:46:53 +0000 (05:46 +0000)
commitadb8c522a84b5c7531b009b7a8d4c854ca7dee08
tree25faed4dbcba58d5a1889f41bb6d91fe8b88bc1a
parent784b56e1e64049d3bf81b7d8fa8c1ae3408c5886
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 reported
      for normal and dangerous permissions

Change-Id: I87b10a7695d8ecfa7156525d6f3d101fc0639513
bug:62755026
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