How to download Android SDK files via bat file (curl)

时间:2022-07-09 10:43:08

bat file content

for /f "delims=" %%a in (sdk.txt) do (
curl -O %%a
)

* Download curl: http://curl.haxx.se/download.html

sdk.txt content

http://dl-ssl.google.com/android/repository/android-1.1_r1-windows.zip

http://dl-ssl.google.com/android/repository/android-1.1_r1-macosx.zip

http://dl-ssl.google.com/android/repository/android-1.1_r1-linux.zip

http://dl-ssl.google.com/android/repository/android-1.5_r04-windows.zip

http://dl-ssl.google.com/android/repository/android-1.5_r04-macosx.zip

http://dl-ssl.google.com/android/repository/android-1.5_r04-linux.zip

http://dl-ssl.google.com/android/repository/android-1.6_r03-linux.zip

http://dl-ssl.google.com/android/repository/android-1.6_r03-macosx.zip

http://dl-ssl.google.com/android/repository/android-1.6_r03-windows.zip

http://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.0_r01-macosx.zip

http://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip

http://dl-ssl.google.com/android/repository/android-2.0.1_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-2.0.1_r01-macosx.zip

http://dl-ssl.google.com/android/repository/android-2.0.1_r01-windows.zip

http://dl-ssl.google.com/android/repository/android-2.1_r03-linux.zip

http://dl-ssl.google.com/android/repository/android-2.2_r03-linux.zip

http://dl-ssl.google.com/android/repository/android-2.3.1_r02-linux.zip

http://dl-ssl.google.com/android/repository/android-2.3.3_r02-linux.zip

http://dl-ssl.google.com/android/repository/android-3.0_r02-linux.zip

http://dl-ssl.google.com/android/repository/android-3.1_r03-linux.zip

http://dl-ssl.google.com/android/repository/android-3.2_r01-linux.zip

http://dl-ssl.google.com/android/repository/android-14_r03.zip

http://dl-ssl.google.com/android/repository/android-15_r01.zip

http://dl-ssl.google.com/android/repository/sysimg_armv7a-14_r02.zip

http://dl-ssl.google.com/android/repository/sysimg_armv7a-15_r01.zip

http://dl-ssl.google.com/android/repository/samples-2.1_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-2.2_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-2.3_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-2.3.3_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-3.0_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-3.1_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-3.2_r01-linux.zip

http://dl-ssl.google.com/android/repository/samples-14_r02.zip

http://dl-ssl.google.com/android/repository/samples-15_r01.zip

http://dl-ssl.google.com/android/repository/platform-tools_r10-windows.zip

http://dl-ssl.google.com/android/repository/platform-tools_r10-linux.zip

http://dl-ssl.google.com/android/repository/platform-tools_r10-macosx.zip

http://dl-ssl.google.com/android/repository/tools_r16-windows.zip

http://dl-ssl.google.com/android/repository/tools_r16-linux.zip

http://dl-ssl.google.com/android/repository/tools_r16-macosx.zip

http://dl-ssl.google.com/android/repository/docs-15_r01.zip

http://dl-ssl.google.com/android/repository/sources-14_r01.zip

http://dl-ssl.google.com/android/repository/sources-15_r01.zip

http://dl-ssl.google.com/android/repository/support_r06.zip

 

http://dl-ssl.google.com/android/repository/google_apis-3-r03.zip

http://dl-ssl.google.com/android/repository/google_apis-4_r02.zip

http://dl-ssl.google.com/android/repository/google_apis-5_r01.zip

http://dl-ssl.google.com/android/repository/google_apis-6_r01.zip

http://dl-ssl.google.com/android/repository/google_apis-7_r01.zip

http://dl-ssl.google.com/android/repository/google_apis-8_r02.zip

http://dl-ssl.google.com/android/repository/google_apis-9_r02.zip

http://dl-ssl.google.com/android/repository/google_apis-10_r02.zip

http://dl-ssl.google.com/android/repository/google_apis-11_r01.zip

http://dl-ssl.google.com/android/repository/google_apis-12_r01.zip

http://dl-ssl.google.com/android/repository/google_apis-13_r01.zip

http://dl-ssl.google.com/android/repository/google_apis-14_r02.zip

http://dl-ssl.google.com/android/repository/google_tv-12_r02.zip

http://dl-ssl.google.com/android/repository/google_apis-15_r01.zip

http://dl-ssl.google.com/android/repository/market_licensing-r01.zip

http://dl-ssl.google.com/android/repository/usb_driver_r04-windows.zip

http://dl-ssl.google.com/android/repository/market_billing_r01.zip

http://dl-ssl.google.com/android/repository/webdriver_r02.zip

http://dl-ssl.google.com/googleadmobadssdk/googleadmobadssdkandroid-4.3.1.zip

http://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_1.4.2.zip



The latest Android SDK (4.0.3) is using the new repository xml files as below.

http://dl-ssl.google.com/android/repository/repository-5.xml
http://dl-ssl.google.com/android/repository/addon.xml
 
http://dl-ssl.google.com/android/repository/addons_list-1.xml
http://www.echobykyocera.com/download/echo_repository.xml
http://innovator.samsungmobile.com/android/repository/repository.xml
http://developer.sonyericsson.com/edk/android/repository.xml

How to download Android SDK files via bat file (curl)