无需用户交互自动更新Android应用 [英] Automatically update an android app without requiring user interaction

查看:128
本文介绍了无需用户交互自动更新Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从我收集,Android应用被从Android Market下载APK,并让用户确认更新更新。我也收集了应用程序需要用户确认更新之前可以推动通过,如果机器人的根源并非是。我想知道如果有可能更新一个无根的手机远程应用程序,无需任何用户交互与应用程序位于一个非市场化的服务器上。

From what I gather, android apps are updated by downloading the apk from the android market, and having the user confirm the update. I also gather that the app needs user confirmation before the update can push through if the droid isn't rooted. I want to know if it's possible to update an app in an unrooted phone remotely, without requiring any user interaction, with the app being located on a non-market server.

现在,我只知道通过市场安装应用程序,并通过亚行。还有没有其他的办法,也许?

Right now, I only know about installing apps via the marketplace, and through adb. Are there other ways, perhaps?

推荐答案

您不能这样做完全远程,其针对Android的安全模型。你可以推出自己的更新程序来远程管理您的应用程序文件,preferences,数据库......但你不能更新code和你当然不能更新您的apk。

You cannot do it totally remote, its against android security model. You could roll your own updater to remotely manage your application files, preferences, database... but you cannot update your code and you certainly cannot update your apk.

所以我的建议是,如果你真的需要做到这些,写一些脚本跨preTER,通过反射可能的帮助下,给它,你有可能永远都需要的所有权限,并在你的脚本远程更新逻辑文件。我会很有趣这里如何继续下去。

So my suggestion is, if you really need to do exactly that, write some script interpreter, possibly aided via reflection, give it all the permissions you may possibly ever need, and remotely update the logic in your script files. I'd be interesting in here how that goes.

这篇关于无需用户交互自动更新Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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