summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScriptCacheDir.java
diff options
context:
space:
mode:
authorTodd Kennedy <toddke@google.com>2018-03-16 15:44:04 -0700
committerTodd Kennedy <toddke@google.com>2018-03-19 17:27:53 +0000
commit94c2b750e23a380225b9c57abcf133d843bb995e (patch)
tree349ac621e63c6b372885e3268d133abc33e0917b /rs/java/android/renderscript/RenderScriptCacheDir.java
parent1b929db32d8e801a7cabbc7fb66915de73e23d34 (diff)
Set application info flags prior to scanning
In the case where an app is updated with a version greater than what's on the /system partition, we still attempt to scan the version on the /system partition to ensure we have the most up-to-date information [since it may have been changed during an OTA]. However, we mistakenly did not apply any package policy prior to scanning. This left package data only partially set [eg. the application info object in the package was missing the fact that it was a system package] and prevented us from scanning the package correctly. Scanning _should_ be completely self contained. The two scan methods should be merged and made static. Any writing or changing of service structures [eg. commiting the scanned package settings or creating a shared user setting] should be handled outside of the scan method, in the add() method. Change-Id: I8d5404a4f0f074ee02d26449c0b01e7a3c949334 Fixes: 62980149 Test: flash O MR1 Test: install latest chrome pkg [version > than what's on P] Test: flash P Test: see that the disabled version of chrome still has its ABI set (cherry picked from commit fcd5279c9e43c169e52768f1be8bc2e391b027ac)
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptCacheDir.java')
0 files changed, 0 insertions, 0 deletions