无需用户交互更新的apk [英] update apk without user interaction

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

问题描述

我在这里看到了这个类似的问题,但那些被要求很久以前,
我的APK是不是在谷歌玩,我也没有打算这样做。
我的第一个问题是,这可能吗?
如果是的话那么如何进行。
我想这个

I have seen this similar question here but those were asked long time ago , My apk is not on Google play and I also not intend to do so. My first question is that "Is it possible ?" If yes then how to proceed. I tried this one

 Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.setDataAndType(
           Uri.parse("file:///sdcard/app.apk"),
        "application/vnd.android.package-archive");
     startActivity(intent);

但是它导致它要求用户安装一个屏幕,我要跳过该网页。
如果这是不可能的,那么知识从谷歌播放或从ADB命令是如何发生的缘故。
我们不能从应用程序运行ADB命令。

But it results in a screen which asks user to install it, I want to skip that page. If it's not possible then for the sake of knowledge how it happens from Google play or from the ADB command. Can't we run the adb command from app.

推荐答案

这是唯一提供定制Andoid分布情况可能出现。为了使长话短说,忘了这一想法。 pressing一旦确定,似乎没有太多来自用户的要求。

This is only possible with customised Andoid distribution. To make the long story short, forget that idea. Pressing once ok seems not too much to ask from the user.

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

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