0df2c5566a9d7d71ca84cb072114f051bbe7a344 |
|
14-Jun-2016 |
Gustav Sennton <gsennton@google.com> |
Support using uninstalled WebView packages as WebView implementation. A package can be uninstalled for the system user but still be installed on the device. Currently, we do not use such a package as WebView implementation which means we fall back to using the fallback WebView package. However, if the fallback package is not valid (because it needs to be updated first) loading WebView will fail. With this change we fetch allow the fetching of information from packages that are uninstalled for the system user so that we can still load WebView when the only valid WebView provider is uninstalled for the system user. Also listen to package additions/changes/removals for all users - otherwise we won't notice when a package becomes replaced if it was already uninstalled for the system user. Bug: 29321185 Change-Id: Ia23c4493844877aea1b4eab7e666fd37540c4f97
/frameworks/base/services/core/java/com/android/server/webkit/SystemImpl.java
|
9455bd0105f974de3d1164890353c2a0d0605840 |
|
08-Apr-2016 |
Hui Shu <hush@google.com> |
Cache the parsed result of WebView provider config xml BUG: 27736084 Change-Id: I3665a5fd4777d22c6f217b358195edbeaad3bb1d
/frameworks/base/services/core/java/com/android/server/webkit/SystemImpl.java
|
c0bc993801ae1296c8338b5fd971743309fde924 |
|
13-Apr-2016 |
Gustav Sennton <gsennton@google.com> |
Ensure at least one default-available webview package is a non-fallback Parts of the WebViewUpdateService code assume that there exists at least one webview package which is available by default and is not a fallback package. With this CL we enforce this assumption by crashing when parsing the webview packages config file if it doesn't hold. Bug: 28014401 Change-Id: Ib7de1f596e31bae65542a6883a9f3af54337bf1b
/frameworks/base/services/core/java/com/android/server/webkit/SystemImpl.java
|
631de99ef99dddde939aa5132e89625e35e77046 |
|
07-Apr-2016 |
Gustav Sennton <gsennton@google.com> |
Add more checks for invalid states when reading webview packages config. There should be at least one available-by-default package (otherwise the user would have to explicitly choose webview implementation before using webview). Furthermore a fallback package should always be available by default (otherwise it would have to be chosen by the user to be used after being enabled). Bug: 28014401 Change-Id: I90c300898a5be4219317d65f15878e1d421193d7
/frameworks/base/services/core/java/com/android/server/webkit/SystemImpl.java
|
ff396f2710e60a4c596e30c7dc74ad7ef24a7ecc |
|
08-Apr-2016 |
Gustav Sennton <gsennton@google.com> |
Ensure we don't crash the system server when disabling/enabling package. We shouldn't crash when trying to disable/enable a non-existent fallback package. Bug: 27918467 Change-Id: Ia94425ac197b17430900bb7a9e7b2d2bf65ab9b3
/frameworks/base/services/core/java/com/android/server/webkit/SystemImpl.java
|
5c153c5172a59e8a3d5cd0cb66df669b3ac79ece |
|
06-Apr-2016 |
Gustav Sennton <gsennton@google.com> |
Disable fallback webview package before downgrading it. Now that we support disabling packages before downgrading them we can do this for the webview fallback mechanism to avoid disabling a fallback asynchronously (downgrading a package is an asynchronous operation). We also check that the package is an upgraded app before downgrading it, to not try to downgrade it unnecessarily. Bug: 27894939 Change-Id: I541c2fcfe8016e4bcc2d5afff6e393c81e2749a2
/frameworks/base/services/core/java/com/android/server/webkit/SystemImpl.java
|
9e8c0584faae06ad903b8b859c5a5e5b11d63257 |
|
25-Mar-2016 |
Hui Shu <hush@google.com> |
Disallow WebView provider packages lower version than Chrome Stable Doing so has security benefits, making sure the device is at least as secure as the MonoChrome Stable on the system image. This is implemented as checking WebView provider package versionCode against the default available, non-fallback WebView provider package. On GMS devices, this is MonoChrome Stable. On AOSP devices, this is standalone WebView. BUG: 27469181 Change-Id: Id5b68ee28401a24843421cfcc3755e63196ac0f9
/frameworks/base/services/core/java/com/android/server/webkit/SystemImpl.java
|
065b7e6ef588a11c82cee22012706e6c0e66d0a3 |
|
01-Apr-2016 |
Gustav Sennton <gsennton@google.com> |
Move more code from WebViewUpdateService to separate overridable class Move more code from WebViewUpdateService to utility classes (methods handling settings and uninstalling/enabling/disabling packages) to be overridden during tests. Also rename system utility class. Bug: 27635535 Change-Id: If49999fba4fd0962f103f389898fa5ddf19365bd
/frameworks/base/services/core/java/com/android/server/webkit/SystemImpl.java
|