开发者

Install .apk without Activity or Dialog

开发者 https://www.devze.com 2023-03-14 10:51 出处:网络
My app downloads an .apk and installs it using an activity like this: Android: install .apk programmatically

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

精彩评论

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