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

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

问题描述

我想在平板电脑上预装 apk(知道怎么做).

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

我的平板电脑会收到来自 Play 商店的通知,该更新已在 Play 商店准备就绪,我应该安装吗?

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

推荐答案

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

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.

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

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