summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2017-01-13 14:19:39 +0000
committerRichard Coles <torne@google.com>2017-03-28 16:21:10 +0000
commit0452670374ebb2a22d2dc44c030f7b43173800c0 (patch)
tree0fabc3fcd0e2446895ab265f100435365d4ba653 /rs/java/android/renderscript/ProgramStore.java
parentd70f423d093c3728c3ed2d3859195e94cd3b97ee (diff)
Support loading a stub WebView using a donor package.
Support loading a WebView package which specifies the name of a "donor" that provides missing files. This allows a preinstalled stub WebView to function by loading its code and assets from the preinstalled Monochrome implementation, as long as the versions are close enough that the manifest contents are compatible, which should be fine since preinstalled versions will match. To do this, we replace the stub's code paths in AppplicationInfo with the donor's, so that all Java and native code and resources are loaded from the donor APK at runtime instead of from the (mostly empty) stub. To get the ClassLoader with the modified path cached as if it was the regular path, we introduce a new "cacheKey" parameter in ApplicationLoaders. Bug: 21643067 Test: build "new" stub WebView upstream in chromium and test loading Change-Id: I08cc9122b1c9def3e1206974f3e0e8973cca3419
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions