Download the Android SDK programmatically

Is there any way to download the android sdk software package from the android site? Does Google provide any rest api / url for this? I developed one application on the developer's side, for which I determine whether the Android sdk file is installed or not, if it is not installed, I will have to download the sdk program code from the Android site. Is it possible?

+4
source share
1 answer

The decompilation suggested in one of the comments is redundant. You just need to parse the XML content from https://dl-ssl.google.com/android/repository/repository.xml . Check the SDK: url tag and use it to get (wget, curl, httpclient, ...) the necessary zip files.

+1
source

Source: https://habr.com/ru/post/1495535/


All Articles