WebView: pay attention to PACKAGE_CHANGED.
PackageManager sends PACKAGE_CHANGED for a package if one of its static shared library dependencies has been reinstalled as of cbafe0b0. When this occurs, we need to update our cached copy of the PackageInfo, and restart the webview_zygote and RELRO preparation process, because the path to the library in the PackageInfo will now be different. This fixes the issue where if TrichromeLibrary is reinstalled at the same version, WebView can no longer spawn renderer processes because the webview_zygote is still being given the old classpath. Both cases where we early out are removed, as the last update time is also not changed in this case. This may result in the update logic triggering in cases where it previously would not, but since we don't explicitly kill clients in this case, it shouldn't affect use of WebView. Bug: 140129991 Test: adb install -r <same version of TrichromeLibrary.apk> Change-Id: I6119939045a842561811dc018853e3d641275e47 (cherry picked from commit b719f633)
Loading
Please register or sign in to comment