-2

How can I find android apk installation activity programmatically? I mean given the package name of the apk and I can find the installation activity that install this apk.

thanks.

user1012283
  • 343
  • 2
  • 13
  • Try this link http://stackoverflow.com/a/7471652/3048584 – TechArcSri Jan 20 '15 at 06:50
  • @android-mantra: Hi thanks for the answer, I have tried that, but it only work if the app has finished installed, but not in the installation process. – user1012283 Jan 20 '15 at 07:30
  • 1
    It's totally controlled by the android firmware and can't be recorded by normal app or without rooted devices(My guess). – TechArcSri Jan 20 '15 at 07:56
  • @android-mantra: how about the default permission that every package need to have the user to agree before installation process begin? Is there such a thing? thanks. – user1012283 Jan 20 '15 at 09:04

1 Answers1

1

I can provide a temporary solution for you which can help you. Include file observer in your app. This can be found from here.

Next is kepp the observer to detect only for .apk file open event listener then do what you want when it opens.

Note: This would be help if the user installs from the device.

Community
  • 1
  • 1
TechArcSri
  • 1,982
  • 1
  • 13
  • 20