HOW TO PROXY AUTHENTICATE THE ANDROID SDK FOR DOWNLOADING PACKAGES??????

1,179 views
Skip to first unread message

Aakash Sigdel

unread,
Apr 28, 2011, 4:25:59 AM4/28/11
to mnnitcom...@googlegroups.com
Does any one know HOW TO PROXY AUTHENTICATE THE ANDROID SDK FOR DOWNLOADING
PACKAGES??????

I downloaded the sdk and
tried to install the packages. But guess what i cannot download them.
cuz the sdk doesn't have a proxy authentication. so can anyone plz
help me with this.

Things I have already tried

1.)
In android.bat i edited as follows:

 rem Finally exec the java program and end here.
call %java_exe% -Dcom.android.sdkmanager.
toolsdir="%tools_dir%" -
Dcom.android.sdkmanager.workdir=%work_dir% -Dhttp.proxyUsername="DOMAIN
\USER" -Dhttp.proxyPassword="PASSWORD" -classpath "%jar_path%;%swt_path
%\swt.jar" com.android.sdkmanager.Main %*

2.)
I tried proxy tunneling using your-Freedom.

3.)
In C:\users\<user_name>\.android\androidtool.cfg
i made changes:
### Settings for Android Tool
#Thu Apr 28 09:44:00 IST 2011
http.proxyPort=my_port
http.proxyLogin=my_username@password
http.proxyHost=my_host
sdkman.ask.adb.restart=false
sdkman.show.update.only=true
sdkman.force.http=false

this did not do me any good. If there is any other way. please suggest
me.

GAURAV TIWARI

unread,
Apr 28, 2011, 4:33:33 AM4/28/11
to mnnitcom...@googlegroups.com
try using proxychains,and ubuntu ( still using windows :P)

Aakash Sigdel

unread,
Apr 28, 2011, 4:34:52 AM4/28/11
to mnnitcom...@googlegroups.com
Tq... Transfering to linux platform today...:D....

ankur agarwal

unread,
Apr 28, 2011, 4:45:09 AM4/28/11
to mnnitcom...@googlegroups.com
On ubuntu/linux use proxychains
On Windows use Proxifier

@ballu use Vmware Player(free)/other desktop virtualization ..... best option to stick to both
--
Regards,
Ankur Agarwal

Piyush

unread,
Apr 28, 2011, 4:55:33 AM4/28/11
to mnnitcom...@googlegroups.com
U need not to edit endroid.bat file for downloading packages. That is for providing net connectivity at runtime for application. For downloading packages simply check out the preference settings. Most probably i will tell u its exact location as soon as i am accessible to it.
And windows have some more issues...nice if u are switching to linux.
--
The question is not why, its how.

Aakash Sigdel

unread,
Apr 28, 2011, 5:11:38 AM4/28/11
to mnnitcom...@googlegroups.com
Well! i tried of editing the android.bat file, i added the authentication statement after the call to java.exe...but that didn't work either...Hope it works on UBUNTU....

sankalp srivastava

unread,
Apr 28, 2011, 8:11:36 AM4/28/11
to mnnitcom...@googlegroups.com
Correction
*Completely developed android application

On Thu, Apr 28, 2011 at 5:09 AM, sankalp srivastava <richi.sa...@gmail.com> wrote:
You don't have to check any settings in android.bat .Me n piyush faced the same problem . Go to eclipse/preferences/network . Enter the network settings over there .And from there you can download both the SDK and AVD (Android emulator ) and other stuff  like google extensions .
 
Secondly this can also be done without internet connectivity as below
1)The android repository is specified by the xml as http://dl-ssl.google.com/android/repository/repository.xml
2)Just go through this repository and find in the required files like if you are looking for Android SDK 1.5 , you can use the following lines
Then enter it as below in the firefox or whatever
 
Like if you want to download this package listen in the xml file "android-1.1_r1-linux.zip"
Just add this line to the above link and ur done
 
Really cheap hack but it works
 
the real problem is proxy authenticating a completely authenticated android application .

sankalp srivastava

unread,
Apr 28, 2011, 8:09:45 AM4/28/11
to mnnitcom...@googlegroups.com
You don't have to check any settings in android.bat .Me n piyush faced the same problem . Go to eclipse/preferences/network . Enter the network settings over there .And from there you can download both the SDK and AVD (Android emulator ) and other stuff  like google extensions .
 
Secondly this can also be done without internet connectivity as below
1)The android repository is specified by the xml as http://dl-ssl.google.com/android/repository/repository.xml
2)Just go through this repository and find in the required files like if you are looking for Android SDK 1.5 , you can use the following lines
Then enter it as below in the firefox or whatever
 
Like if you want to download this package listen in the xml file "android-1.1_r1-linux.zip"
Just add this line to the above link and ur done
 
Really cheap hack but it works
 
the real problem is proxy authenticating a completely authenticated android application .
On Thu, Apr 28, 2011 at 2:11 AM, Aakash Sigdel <mail.aak...@gmail.com> wrote:

Piyush

unread,
Apr 28, 2011, 8:55:34 AM4/28/11
to mnnitcom...@googlegroups.com
thanks sankalp for backing up..thats exactly i was talking about(i was not having my comp at that time).

Aakash Sigdel

unread,
Apr 28, 2011, 10:35:04 AM4/28/11
to mnnitcom...@googlegroups.com
okie done downloading. Now on which location do i extract those
files...on tools directory?? or on lib???...

Ankan seth

unread,
Apr 28, 2011, 9:40:17 AM4/28/11
to mnnitcom...@googlegroups.com
solution by sankalp seems more familiar !!! nice one !!
--
Sincere regards ,

Ankan Seth
B.Tech III yr ,
Computer Science and Engineering,
Motilal Nehru National Institute Technology.




sankalp srivastava

unread,
Apr 28, 2011, 2:52:04 PM4/28/11
to mnnitcom...@googlegroups.com
I don't remember exactly but wherever you might have installed ur SDK .From that directory , you have to go to platform or platform-tools to add these SDK platforms , next time you open ur eclipse , you'll see the added platform enlisted in the Android manager window .
Piyush might be having it instaled (mera lappy load nahin utha paata :-( ), so if you are on x86 architecture(which  , im sure you are )  you can just copy the files and use it as it is . Eclipse comes as a preinstalled binary , so no issues there as well .Some issues might have to be resolved like compatibility mode etc .

Ankan seth

unread,
Apr 28, 2011, 2:16:28 PM4/28/11
to mnnitcom...@googlegroups.com
Hey people how come you all are facing so much problem with android ??  Its tut is good enuf ! Start from top and go down !! It helps :P
http://developer.android.com/sdk/installing.html  

Aakash Sigdel

unread,
Apr 29, 2011, 1:08:08 AM4/29/11
to mnnitcom...@googlegroups.com
Thank You. Its now working fine... Now finally i can start with
android development......:)......
Reply all
Reply to author
Forward
0 new messages