Build Android SDK update source in LAN

Source: Internet
Author: User
Tags rsync

Work notes, later time to organize:


Cd/var/www/nginx-default/android/repository

rsync-avp/home/gg/android-tools/143/sdksrc/html/android/repository/./
rsync-avp/home/gg/android-tools/198/sdksrc/html/android/repository/./

Sed-e ' s/https:/http:/g '-i repository-10.xml
Sed-e ' s/https:/http:/g '-I *.xml
Sed-e ' s/https:/http:/g '-i sys-img/android/sys-img.xml
Grep-rii ' HTTPS ' *

Exit 0
############################### Note for local dl-ssl.google.com
Http://developer.android.com/sdk/index.html
wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz

Tools/android List SDK--extended
Tools/android Update SDK--no-ui-t android-21
Cat Cmd.txt | grep fetching | Grep-o ' https:.* '
Wget ${xml}-o html/${file} # Get all XML from https://dl-ssl.google.com
#https://dl-ssl.google.com/android/repository/tools_r23.0.5-windows.zip
Grep-rii ' <sdk:url>.* ' * | Grep-o ' [!>].*\.zip ' | Cut-c 2-

[PS]: You must download *.zip to Currect folder.
echo 172.21.5.142 dl-ssl.google.com >> C:\WINDOWS\system32\drivers\etc\hosts
Change HTTPS to HTTP in SDK Manager
#############################################


This article is from the "Moagan" blog, make sure to keep this source http://brucemj.blog.51cto.com/3319384/1572168

Build Android SDK update source in LAN

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.