4

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 action. 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.
Community
  • 1
  • 1
gregm
  • 11,719
  • 7
  • 55
  • 75
  • 6
    NOoooooooooooooooooooooooooooooooooooooooooooooooooo please do not do this. You dont own their phone, let them decide – Eric Jun 21 '11 at 00:31
  • Try reading through this answer: http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission/5805299#5805299 – Joe Jun 21 '11 at 00:31

2 Answers2

5

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! ;)

hackbod
  • 89,583
  • 16
  • 137
  • 153
1

Is there a way to programatically without requiring user interaction?

Not unless you are writing custom firmware.

CommonsWare
  • 954,112
  • 185
  • 2,315
  • 2,367
  • I upvote this answer because it is the right answer and it tells you how to achieve what the OP asks(by writing custom firmware^_^). – neevek Aug 06 '12 at 09:33