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.
精彩评论