title: Replacing default AOSP WebView with the WebView from the PlayStore
body: <p>We use a <code>custom Android ROM</code> which in-turn uses the <code>default WebView</code> with version <code>48</code>. We want to replace that APK with the APK from the Play Store with version <code>74</code>. Both have different package names.</p>
  
  <p>I've read this <a href="https://stackoverflow.com/questions/36335643/replace-android-default-webview">replacing default WebView</a> and done changing my <code>frameworks/base/core/res/res/values/config.xml</code> values to point to the new APK's package name.</p>
  
  <p>Now, when I try to launch the Activity which hosts the WebView I get this stacktrace </p>
  
  <pre><code>E/webviewchromiumloader: Failed to open relro file /data/misc/shared_relro/libwebviewchromium64.relro: No such file or directory
  E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@com.google.android.webview-1@base.apk@classes.dex: Permission denied
  E/cr_LibraryLoader: Unable to load library: webviewchromium
  E/WebViewFactory: error instantiating provider
  Binary XML file line #7: Binary XML file line #7: Error inflating class android.webkit.WebView
  </code></pre>
  
  <p>What am I missing here? or any alternative library which has the latest WebView</p>
  
  <p><strong>Solved here</strong> -  <a href="https://stackoverflow.com/questions/46663461/updating-webview-on-aosp-android-6-0">link</a>  </p>