summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragment.java
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2021-02-26 10:28:34 -0800
committerHai Zhang <zhanghai@google.com>2021-02-26 10:44:10 -0800
commit416a04e4c6e9fc876b0c35562967e933ac98046e (patch)
tree9e5872587b46f2d13f0df07db31cc745f832692e /rs/java/android/renderscript/ProgramFragment.java
parentfdcfd2a2d580c12505b835432c15936e38f08fe1 (diff)
Fix permission state missing when backup is restored.
The BackupAgent of an application may run before package post installation, so the permission state must be ready by then. So instead of calling onPackageInstalled() in post install, we can revert to calling it in updateSettingsInternalLI() as in R (before ag/13144022 which introduced the regression). This changes the grant permissions etc to be done before package post-installation, but this might be actually a correct change as application code may expect permissions, and we are already doing it like this in installExistingPackageAsUser() so this change is making it consistent. Fixes: 175932103 Test: manual Test: Wipe and restore a backup and ensure Keep is no longer crashing. Test: presubmit Change-Id: Ie2e0dbd7a1a8454f9935527b9c303c26010ff592
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragment.java')
0 files changed, 0 insertions, 0 deletions