可用更新时,手动安装的apk(不是从Play商店)会收到通知吗? [英] Will apk installed manually (not from play store) receive notification when update becomes available?

查看:135
本文介绍了可用更新时,手动安装的apk(不是从Play商店)会收到通知吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在平板电脑上预安装APK(知道如何操作).

我的平板电脑会从Play商店收到通知吗,该更新已在Play商店中准备好了,我应该安装它吗?

解决方案

要预安装APK,您需要成为设备OEM;如何完成取决于您的实际环境.如果您的apk内部没有本机库,则可以放心地将apk放在固件映像中(与标准apk套件位于同一位置).除此之外,您还可以(例如,类似于我在某些摩托罗拉设备中看到的内容)创建一个特殊目录(例如/preinstall),并使该脚本针对该位置中的每个文件执行"pm install ..."那些尚未安装的项目.

关于更新,正如人们评论的那样:没问题,因为您没有更改程序包名称.只要确定要增加商店上传的软件包版本即可.另外,为了安全起见,请将软件包(较旧的版本,不能使用)上传到商店以在商店中保留该软件包的名称-否则有人可以在您之前将其自己放置在商店中.

I want to preinstall apk on tablet (know how to do it).

Will my tablet receive notification from play store, that update is ready on play store and i should install it?

解决方案

To preinstall your APK, you need to be the device OEM; how it gets done depends on your exact environment. If your apk has no native libraries internally, you can safely just place the apk in the firmware image (in the same location with the standard apk suite). Beyond that, you could (for example, similar to what I've seen in some Motorola devices) create a special directory (such as /preinstall) and have a script perform "pm install ..." for each file in that location for those items not already installed.

Regarding updates, as people have commented: no problem since you're not changing the package name. Just be certain to increase the package version for the store upload. Also, for safety, upload the package (older version, non-functional is ok) to the store in order to reserve that package name on the store -- otherwise someone could place their own on the store before you.

这篇关于可用更新时,手动安装的apk(不是从Play商店)会收到通知吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆