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)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 28 Jul 2017 17:21:22 +0000 (17:21 +0000)
commitb7f74b73eb46eff08c17e8e84133f5f224228c21
tree3bab695264c9bc0abbe530e21f382e001837d344
parent08cf17098d929e69ac964dcf72937236dddf7a90
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
(cherry picked from commit adb8c522a84b5c7531b009b7a8d4c854ca7dee08)
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