开发者

Install .apk without Activity or Dialog

My app downloads an .apk and installs it using an activity like this: Android: install .apk programmatically

However, it causes a dialog to appear and requires user ac开发者_StackOverflow中文版tion. So my question is:

Is there a way to programatically without requiring user interaction?

Based on the comments I have to provide additional information:

  • Yes, there are security implications. I just want to know if it is possible.
  • Actually, I do own their phone.


No, you can not do this, the user must approve all app installs.

Since it is your device, however, you can use adb to install it without a dialog! ;)


Is there a way to programatically without requiring user interaction?

Not unless you are writing custom firmware.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜