{"id":36820986,"url":"https://github.com/jonanorman/webviewupgrade","last_synced_at":"2026-01-12T14:01:17.573Z","repository":{"id":223848625,"uuid":"761692062","full_name":"JonaNorman/WebViewUpgrade","owner":"JonaNorman","description":"upgrade webview directly does not require install WebView Apk In Android. Android免安装升级WebView内核","archived":false,"fork":false,"pushed_at":"2025-01-06T03:09:18.000Z","size":3006,"stargazers_count":203,"open_issues_count":3,"forks_count":19,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-06T04:19:32.027Z","etag":null,"topics":["android","webview"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonaNorman.png","metadata":{"files":{"readme":"README-ZH.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-22T10:03:13.000Z","updated_at":"2025-01-06T03:09:21.000Z","dependencies_parsed_at":"2024-02-23T04:54:28.946Z","dependency_job_id":"f281195a-e00c-4860-a49c-b2a44e4014a3","html_url":"https://github.com/JonaNorman/WebViewUpgrade","commit_stats":null,"previous_names":["jonanorman/webviewupgrde","jonanorman/webviewupgrade"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/JonaNorman/WebViewUpgrade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonaNorman%2FWebViewUpgrade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonaNorman%2FWebViewUpgrade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonaNorman%2FWebViewUpgrade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonaNorman%2FWebViewUpgrade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonaNorman","download_url":"https://codeload.github.com/JonaNorman/WebViewUpgrade/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonaNorman%2FWebViewUpgrade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","webview"],"created_at":"2026-01-12T14:00:29.022Z","updated_at":"2026-01-12T14:01:17.540Z","avatar_url":"https://github.com/JonaNorman.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebViewUpgrade\n简体中文 | [English](./README.md)\n\n还在经受WebView差异化带来的兼容问题，还在为腾讯X5内核收费所困扰，这个库也许就能轻松解决这些问题，它实现了Android免安装升级WebView内核的功能。如果你觉得有所收获，给这个库点个Star吧，你的鼓励是我前进最大的动力，这年头写代码不就这点追求嘛😊。\n\nAndroid5.0以后WebView升级需要去Google Play安装APK，就算安装了以后也不一定能行，像华为、Amazon等特殊机型WebView的Chromium版本一般比较低，只能用它自己的WebView无法用Google的WebView。\n\n我就遇到了华为机上因为WebView内核的Chromium版本低于107无法播放H265视频的情况，为了解决上述问题可以用JS实现H265播放，但是会比较卡，这个时候我就想能不能让WebView用应用内的APK作为内核，下图是升级WebView内核的前后效果对比\n\n![preview](preview/preview.gif)\n\n升级前在华为机上的系统WebView内核包名是`com.huawei.webview`，版本是14.0.0.331，UserAgent中的Chromium实际版本是99.0.4844.88,如下图所示小于107不支持H265播放\n\n\u003cimg src=\"/preview/webview_can_not_play_h265.jpg\" width=\"400px\"\u003e\n\n把WebView内核的包名、版本、包地址传到以下代码升级内核成功后就可以播放H265视频了\n\n\u003cimg src=\"/preview/upgrade_code.png\" width=\"400px\"\u003e\n\nWebView内核选择页面如下图所示\n\n\u003cimg src=\"/preview/choose_webview.jpg\" width=\"400px\"\u003e\n\n升级成功的WebView内涵的包名变成了`com.google.android.webview`，UserAgent中的Chromium实际版本也变成了122.0.6261.64\n\n\u003cimg src=\"/preview/webview_can_play_h265.jpg\" width=\"400px\"\u003e\n\n# 使用\n```gradle\nimplementation 'io.github.jonanorman.android.webviewup:core:0.1.0'\nimplementation 'io.github.jonanorman.android.webviewup:download-source:0.1.0'\n```\n\n```java\n            UpgradeDownloadSource  upgradeSource = new UpgradeDownloadSource(\n                    context,\n                    url,\n                    file\n            );\n            WebViewUpgrade.upgrade(upgradeSource);\n```\n\n# 兼容性\n\nAndroid的设备五花八门，已测试以下功能和机型，欢迎大家提issue和Merge Request加入到这个项目中来，有疑惑可以扫码加群，如果二维码显示过期了，可以搜索微信号JonaNorman加我个人微信拉你进群(请备注WebView升级)\n\n\u003cimg src=\"/preview/chat.jpg\" width=\"300px\"\u003e\n\n\n## 功能特性\n| WebView包名    | 系统版本 |\n|:-------------| ----- |\n|com.google.android.webview     | 122.0.6261.64  |\n| com.android.webview       | 113.0.5672.136      |\n| com.huawei.webview   | 14.0.0.331     |\n| com.android.chrome | 122.0.6261.43     |\n| com.amazon.webview.chromium | 118-5993-tv.5993.155.51   |\n\n## 机型\n| 厂商         | 系统版本 |\n| :----------- | -------- |\n| 华为Mate30   | 12       |\n| 小米10       | 11       |\n| VIVO NEX A   | 10       |\n| OPPO FIND X5 | 14       |\n\n**待开发功能**\n\n- [ ] 多进程\n- [ ] 动态切换\n\n原理介绍: [地址](https://juejin.cn/post/7340900764364472332#heading-4)\n\n\n# ⭐ star历史\n\n![Star History Chart](https://api.star-history.com/svg?repos=JonaNorman/WebViewUpgrade\u0026type=Date)\n\n\n# 特别感谢\n\n| Stargazers                                                                                                 | Forkers                                                                                                                 |\n|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [![Stargazers repo roster for @JonaNorman/HDRSample](https://reporoster.com/stars/JonaNorman/WebViewUpgrade)](https://github.com/JonaNorman/WebViewUpgrade/stargazers)                                          | [![Forkers repo roster for @JonaNorman/HDRSample](https://reporoster.com/forks/JonaNorman/WebViewUpgrade)](https://github.com/JonaNorman/WebViewUpgrade/network/members)                            |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonanorman%2Fwebviewupgrade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonanorman%2Fwebviewupgrade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonanorman%2Fwebviewupgrade/lists"}