阅读:9229回复:11

禁止google play store自动升级

楼主#
更多 发布于:2019-07-05 15:51
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java


+        if (pkgName.equals("com.android.vending")) {
+            res.setError(INSTALL_FAILED_PACKAGE_CHANGED, "installPackageLI");
+            return;
+        }

最新喜欢:

VastStarGamesVastSt...
[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
沙发#
发布于:2019-07-05 15:56
不错,mark一下
If you have nothing to lose, then you can do anything.
yam
yam
论坛版主
论坛版主
  • 社区居民
  • 优秀斑竹
  • VIP会员
  • 荣誉会员
板凳#
发布于:2019-07-09 15:04
地板#
发布于:2020-12-18 14:47
请问楼主,google play 升级后启动黑屏,Log提示没有安装webview,遇到过这种情况吗?
看网上的说法,检查framework-res.apk里的config_webview_packages.xml文件,已经是gms包里overlay的那个,升级前是正常的,进开发模式可以查看webview用的是google webview,但升级后开发模式里webview就显示空了。按你的做法,加上后gms不能升级,但进installPackageLI前仍然把webview干掉了
4楼#
发布于:2020-12-18 17:23
5楼#
发布于:2020-12-30 09:33
陆沉子:请问楼主,google play 升级后启动黑屏,Log提示没有安装webview,遇到过这种情况吗?
看网上的说法,检查framework-res.apk里的config_webview_packages.xml文件,已经是gms包里ov...
回到原帖
我们这边没有遇到这种情况,检查一下是否是webview被AMS卸载掉了。
[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
6楼#
发布于:2020-12-31 16:32
zhaoyf13:我们这边没有遇到这种情况,检查一下是否是webview被AMS卸载掉了。回到原帖
Chrome升级到com.android.chrome_81.0.4044.117_404411700会干掉webview,还没找到解决方案
7楼#
发布于:2020-12-31 18:31
陆沉子:Chrome升级到com.android.chrome_81.0.4044.117_404411700会干掉webview,还没找到解决方案回到原帖
<webviewproviders>
    <webviewprovider description="Google WebView" packagename="com.google.android.webview" availablebydefault="true">
        </webviewprovider>
    <webviewprovider description="Chrome Stable" packagename="com.android.chrome" availablebydefault="true">
    </webviewprovider>

config_webview_packages.xml
可以配置多个webview在开发者选项里面切换,google webview不能用了还可以用Chrome
[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
8楼#
发布于:2020-12-31 20:41
zhaoyf13:config_webview_packages.xml
可以配置多个webview在开发者选项里面切换,google webview不能用了还可以用Chrome
回到原帖
问题是安装新版chrome,开发者选项的这个菜单就是空的,无解
9楼#
发布于:2020-12-31 20:49
zhaoyf13:config_webview_packages.xml
可以配置多个webview在开发者选项里面切换,google webview不能用了还可以用Chrome
回到原帖
使用GMS编译时会使用GMS包里带的那个config_webview_packages.xml,反编译framework-res.apk可看到这个文件,有点诡异的是新版本的chrome做了什么操作,好像把webview卸载了,才导致系统读不到webview包信息
10楼#
发布于:2021-01-05 11:22
陆沉子:Chrome升级到com.android.chrome_81.0.4044.117_404411700会干掉webview,还没找到解决方案回到原帖
gms里有个googlewebview,预装进去就可以了,原理未知
11楼#
发布于:2021-01-06 23:00
补充一点点,amlogic默认安装的Google play会遇到2个问题:1. 无法搜索常规SNS和多媒体应用,比如youtube, twitter等. 2. 搜索到的应用会提示“您的设备与此版本不兼容”,无法安装。
解决办法:1. 和feature有关,TV上只会申明使用到的一些feature,但不会申明camera和一些sensor的硬件feature,所以搜不到这些应用,将这些feature的xml编译进去就可以。
2. google play apk版本太低导致。google play商店的包名:com.android.vending,应用名:Phonesky,TV的gms可能是Tubesky。更新到最新版本就行。
游客

返回顶部