Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save tw-Frey/42ddda775f5f64c67bad2d2ce40711d6 to your computer and use it in GitHub Desktop.

Select an option

Save tw-Frey/42ddda775f5f64c67bad2d2ce40711d6 to your computer and use it in GitHub Desktop.
替换 Webview 預設 Package Name, e.g. [com.android.webview] → [com.google.android.webview]
  1. 安装最新的 Android System Webview (com.google.android.webview)
  2. 拷贝 (pull) 一份 /System/framework/framework-res.apk 的副本到任意位置
  3. 搜索在其中搜索 webview, 将 /android/string/config_webViewPackageName 的值改为 com.google.android.webview
  4. 将修改后的文件覆盖回 (push) 原位置
  5. 重启
@tw-Frey
Copy link
Author

tw-Frey commented Oct 31, 2019

4. 将修改后的文件覆盖回 (push) 原位置

這也不簡單
詳情參考:如何 push 檔案到 Android Emulator 的 /system (USE -writable-system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment