summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2020-11-24 22:47:10 +0000
committerHai Zhang <zhanghai@google.com>2020-11-24 18:12:36 -0800
commit6b086884c232f68ce425798a5056ad1b0251a9d4 (patch)
treee6b885061b6af29f7cacdbce50aadf0fadabd666 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentd2ff4867183ca5ea6c6129899eb3c0cfa3987ca9 (diff)
Revert "Revert "Replace permissions API with onPackageInstalled().""
This reverts commit 84ee067aca0ef89d310b05bff0b8e4d53277b3cd. Reason for revert: Fixed the issue where allowlisted restricted permissions were removed upon package update due to the original CL. This was caused by the fact that previously the allowlisted permissions passed in by installer are used to replace the set of existing allowlisted permissions, and this is inconsistent with the granted permissions passed in by installer where we simply grant the specified permissions instead of revoking permissions that weren't in the list passed in. So I believe making the allowlisted permissions an addition instead of replacement makes more sense and also solves the issue. The other change is that onPackageInstalled() is now called on a per-user basis, because permission allowlist addition has to be done per-user unlike the previous replacement. This also gives us a cleaner API. Bug: 158736025 Test: RestrictedStoragePermissionTest Change-Id: I7a47afebf88406dc16f64942db6dcaff4e18ab75
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions