适用于 Android 的 OTA
我开发了 Android 应用程序,并将 .apk 放在我的网站上,该网站在 LAMP 上运行,我希望通过简单地向 Android 设备提供 URL 来启用我的应用程序的 OTA(无线)安装。
我该怎么做呢?
我希望产生的场景是(如果有人没有正确理解我的话)用户扫描apk URL的二维码,然后无缝安装它。现在,用户必须下载该文件,然后点击它进行安装。
提前致谢。
I developed android application and put .apk on my website which runs on LAMP and I wish to enable somehow OTA (over the air) installation of my application, by simply providing URL to Android device.
How can I do it?
Scenario I wish to produce is (if someone didn't understand me correctly) that user scanns QR code of apk's URL and then install it seemlessly. Right now, user must download the file, then tap on it to install it.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需让二维码指向实际的 .apk,然后让用户下载并手动安装即可。无法让用户读取 QR 并自动安装应用程序。这不是 OTA 安装或更新的工作原理。例如,即使您执行 Android 的实际 OTA 更新,您也必须确认您希望执行该操作。
即使有办法实现这一点,也不会妨碍任何人从手机中提取 .apk 并查看它或对其进行逆向工程。
Just have the QR code point to the actual .apk and let the user download it and manually install it. There is no way to have a user read the QR and upon that automatically install the app. Thats not how OTA installations nor updates work. Even when you perform an actual OTA update of Android for example you have to confirm that you'd like the action to be performed.
Even if there is a way to achieve this it won't hinder anyone to just pull the .apk from his phone and take a look at it or reverse engineer it.
您还可以了解 adb install testapp.apk 的作用及其工作原理...
一旦您将新版本下载到手机(SD 卡),也许您可以从您的应用程序启动它
You may also see what adb install testapp.apk does and how it works...
Maybe you can initiate it from your app, once you download the new version to the phones (SD Card)