Search code examples
androidadb

Is there any API that allows to install an apk in Android?


I want to build an app able to install apps in any Android Device from my PC, I know about adb terminal application..and I could build some kind of an interface for it, but I have been trying to find any api release that allows me to do the same thing without calling to adb.exe. I dont care if is in java or any other language...anyone knows?


Solution

  • I do not think that an api exists. ADB is a client-server program that includes three components: a client, a server and a daemon, so (I think) it's not too easy to create an api. You must take into account that the ADB is the best option, and maybe you can develop a frontend (Eg: http://forum.xda-developers.com/showthread.php?t=970348 )

    But if you are just trying to install xpi:

    • WHy don't you upload your app to Google Play or alternatives?
    • Also you can copy the app to your phone and install it via Install File Manager or (you need to install it first)
    • Try something similar to http://www.apkinstall.com/