yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] beagz:
Well, I just tried switching IDs. Still no downloads start. I don't think that is the answer since the ID I used has never been used until I just tested it.
[G1 Android Development] manup456:
This is not true for all i just tried it and nothing.
[G1 Android Development] mogulrudy:
;)Yeah I'm having the same problem with the G build but I think its defintiley worth it not 2 have the market and apps on my phone to have a kick ass os! Its a sacrifice
[G1 Android Development] TemporalShadows:
My question is: why are they blocking it? It makes no sense whatsoever. Legitimate developers will be using this build for testing; are they not supposed to connect to the market? What do they have to gain by blocking it? It's not like you can steal applications using it or something.
[G1 Android Development] MontAlbert:
You know, i was thinking the same thing but then though, why would they also have stopped those from other countries getting access to paid apps? that costs them $ so obviously cost is not an issue to them..... now where did i put that tinfoil hat?????
[G1 Android Development] KPeriod:
*Takes off tinfoil hat and puts back on Toronto Blue Jays hat.*
[G1 Android Development] whatchamccallum:
This is what I get

CLIENT REQUEST

GET /market/download/Download?assetId=-9036005502571811202&userId=TOOK OUT&deviceId=TOOK OUT HTTP/1.1

Cookie: ANDROID= {I TOOK THIS OUT. IT WAS AN ID of sometype 146 characters}

Host: android.clients.google.com

Connection: Keep-Alive

User-Agent: AndroidDownloadManager

SERVER RESPONSE

HTTP/1.1 200 OK

Content-Length: 1326958

ETag: 1462348866

Content-Type: application/vnd.android.package-archive

Content-disposition: inline

Date: Thu, 16 Apr 2009 20:35:00 GMT

Expires: Thu, 16 Apr 2009 20:35:00 GMT

Cache-Control: private, max-age=0

X-Content-Type-Options: nosniff

Set-Cookie: S=android-marketplace-api=lhurH5Z5kJg; Domain=.google.com; Path=/; HttpOnly

Server: GFE/2.0
[G1 Android Development] sino8r:
No, you all got it all wrong... put the tin foil hat on your phone and then you'll be safe from Google. Reception really sucks now :rolleyes:
[G1 Android Development] rhonal89:
hey market is back up for me not sure for you guys. i had it out for almost two days its working for now. not sure whats going to happen.
[G1 Android Development] xyrcncp:
Nothing here.
[G1 Android Development] chrisharang:
Can you tell us what build you're running and what country you're in? Thanks

- Chris
[G1 Android Development] andonnguyen:
The market still isn't working, im located in California, USA.

Running this build:

5.0.1Gr2-appstosd-signed.zip
[G1 Android Development] Ocalap2p:
I just tried G5.01r2 (apps_to_sd) and the market is still broken. I'm in US/FL.
[G1 Android Development] nolageek:
@andonnguyen

@Ocalap2p

Geesh, why are you two answering chrisharang's question? He asked rhonal89, whose market was working again and even quoted the specific post.. .now everyone who reads this is going to post their version and country... no wonder these threads get so big so quick.
[G1 Android Development] MontAlbert:
hehe- either way, Haykuro says it is fixed in the new update... which now he is home ( i figured out he is in NYC time zone and it is after 10pm) should be out soon.....12pm here in Melbourne australia so its been along wait since friday :D
[G1 Android Development] rhonal89:
sorry i havent answer back i was working. but i found out that it got nothing to do with any google blocking any accounts in my side view cus i can access every app in my downloads also download any app but only if am in a wifi area so am thinking it got to do with the connetion is not that google blocked any 1.5 firware cuse am still able to us it but only if i got a wifi connetion. i downgraded from 5.0.2Hr2 to 5.0.1H to fine and see if the problem was in the build but found out it still the same. So for now if you want to access the market it got to be threw a wifi connetion or swicth to jesusfreak rom witch i can garantee you it will work. also am not sure if people knew this but this is the only mothod i know until it is fixed.
[G1 Android Development] rsfaze:
I just got done flashing the new 5.0.1G3-signed and It still hangs on download. I did NOT wipe which I'm doing right now to see if that is the key.
[G1 Android Development] 4treyu:
Haykuro said he hasn't solved the market problem yet, he's working on that.
[G1 Android Development] rsfaze:
oh that sucks, oh well it will all be in time. I appreciate the work everyone puts in on xda
[G1 Android Development] andonnguyen:
rhonal89 is using the H build of the market, which explains why he is able to use it. we can answer it if we want. lol. Our answers are valid because the supposed market fix in the G build hasn't actually been fixed. Threads get big so quick because people like you feel the need to post saying threads are getting big so quick because of us, so you're wasting as much thread space as we are. lol.
[G1 Android Development] myiguru:
Hello, today i flashed the h build and market worked, then the g and it wont work (r3). Nothing new i know but i noticed that on the h build there is a reference to ota-rel-keys but not in the g build. In the zip update package i found a file named otacerts.zip in /system/etc/security for the h build but it was missing on the g. I tried to copy the zipped file with adb on the g build but still no luck, i could not try unzipping and copying, has anybody tried this ? Is it possible that this is the problem ?
[G1 Android Development] haykuro:
Gah, forgot to remove it.

/systsem/etc/otacerts.zip is used by android to verify an OTA update. It's nothing important. (especially now considering the HTC servers have been switched).
[G1 Android Development] koxx:
haykuro, do you have an idea to solve market problem ?
[G1 Android Development] MrADeveci:
I've flashed to G build and the market works perfectly fine .... Im in the UK.
[G1 Android Development] Gimpeh:
Try downloading a free app from the market.
[G1 Android Development] HTF:
I'm in the uk with the G build and the market is not working. Not sure how SatanR1 got it working but it does not work perfectly.
[G1 Android Development] question.com:
the market works on both build. downloading is the issue. it will stay on starting download". damn i want to use my g build again. hopefully its all worked out soon.
[G1 Android Development] MrADeveci:
Yes, I have downloaded .... I have downloaded FileDroid ... as that' teh first thing I use ... and it works perfectly fine!
[G1 Android Development] xyrcncp:
Don't know how you're getting it to work, I'm still in Starting Download Land.
[G1 Android Development] HTF:
Yeah I know, but staying stuck on starting download in the market is not the market working imo.
[G1 Android Development] koxx:
Downloading not working in France ...
[G1 Android Development] emms007:
Hello,

I am using the HTC so it's working perfectly. I isolated the download sequence which is the following :

GET /market/download/Download?assetId=-7095692069892866300&userId=1201456625&deviceId=2306195787243817232 HTTP/1.1

Cookie: ANDROID=DQAAAIgAAAC04aKuxYQiI_VaNshHPl6IszHDtFEjppvGAHEaFejLx79F2p_7Bbh5dVNxYfHhXVCdFP4gGeA9g3LJWx2yIcXPcOMPlChih4aJhF6FxDGq3XH4KD4XmvzYBqHiIKyzF9wZpSZ8PWpgAr130_i6NIqZvCw8bj6EdQ01ojIF3-b7RZwB-4l_ETB_eanFEzNGHHQ

Host: android.clients.google.com

Connection: Keep-Alive

User-Agent: AndroidDownloadManager

And I managed to replicate it from a bash command prompt which actually works perfectly (I see the APK being served) :

curl --trace-ascii /tmp/curl "http://android.clients.google.com/market/download/Download?assetId=-7095692069892866300&userId=1201456625&deviceId=2306195787243817232" -A AndroidDownloadManager -b "ANDROID=DQAAAIgAAAC04aKuxYQiI_VaNshHPl6IszHDtFEjppvGAHEaFejLx79F2p_7Bbh5dVNxYfHhXVCdFP4gGeA9g3LJWx2yIcXPcOMPlChih4aJhF6FxDGq3XH4KD4XmvzYBqHiIKyzF9wZpSZ8PWpgAr130_i6NIqZvCw8bj6EdQ01ojIF3-b7RZwB-4l_ETB_eanFEzNGHHQ"

Can someone running the non-working G build provide an extract of his download sequence?

the UserId and DeviceId params are definitely fixed. (that's obvious)

The assetId is simply the ref to the application to be installed.

And I can't find any trace of the remote server setting the ANDROID cookie. Even after exiting the Market, Killing all processes and coming back, the cookie is still the same and it has not been received from anywhere.

By the way, all other request to the market (such as browsing and seeking packages' details) include the following header :

User-Agent: Android-Market/2 (sapphire PLAT-RC33);
[G1 Android Development] koxx:
how can you process to extract that ?

If you explain me, I can try ;)

I manage to download the file with curl under WinXP.

Do you think it can be a way to download APK files without market ?
[G1 Android Development] emms007:
Yes it is but there's no point in manually downloading APK :)

Here is how I am doing my capture :

- G1 and PC both on same WIFI network

- PC configured to share internet (guess it works also with regular internet sharing from XP/vista)

cat 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.11 [I](phone's ip)[/I] -o eth0 [I](computer network interface)[/I] -j MASQUERADE

- Phone's internet gateway overrided :

in Adb:
iproute change default via 192.168.0.14 [I](computer's IP)[/i] dev tiwlan0

Then listen to the data with wireshark and filter on the phone's IP address

ps: internet is somehow working half on the phone with that but good enough to see the transcripts (I think something is wrong with DNS resolving servers)
[G1 Android Development] koxx:
OK, can you try to extract the HTTP request string from my .cap available at the first post ?

It was done with 5.0.1G and it was not working.

I don't have available material (laptop busy ...) to test your solution.
[G1 Android Development] emms007:
I can't get anything out of your capture extract, it lacks the HTTP request or something but it's not something really useful. Do you have the full capture?
[G1 Android Development] koxx:
I've just tried ;) ... et j'ai vu qu'il manquait des choses effectivement !
[G1 Android Development] koxx:
I did a new capture. I finaly get my laptop ;)

http://koxx3.free.fr/http_market_and_2.cap

EDIT : you see what I see ! pckt 117 : HTTPS request !!! they changed protocol, didn't they ??!
[G1 Android Development] emms007:
I don't think so as the IP for the ID 117 refers to google.com. I think it's another connection, probably for the emails or something more "secured".

My requests for download where made to android.clients.google.com

`--> nslookup android.clients.google.com
Server: 89.2.0.1
Address: 89.2.0.1#53

Non-authoritative answer:
android.clients.google.com canonical name = android.l.google.com.
Name: android.l.google.com
Address: 209.85.229.113
Name: android.l.google.com
Address: 209.85.229.100
Name: android.l.google.com
Address: 209.85.229.101

Or ww-in-f101.google.com (209.85.229.101) for browsing the catalog.

Unfortunately I don't see much (none actually) of Market related transactions in your capture :s
[G1 Android Development] koxx:
I manage to get a better capture :)

http://koxx3.free.fr/http_market_and_3.cap

line 95 : HTTP request

as you can see, user agent is very strange !!!

POST /market/api/ApiRequest HTTP/1.1

Content-Length: 472

Content-Type: application/x-www-form-urlencoded

Host: android.clients.google.com

Connection: Keep-Alive

User-Agent: Android-Market/2 (sapphire PLAT-RC33); gzip

Text data : version=2&request=CpUCCssBRFFBQUFJY0FBQUQxUExpV3FhTWhfaVg2NWFsYm1ybHljYy1kSnp2S2VGeTZoRDJjbEYwWXlhOVRpOWN3VU9OMGc5Mjc1cXF3aXlrV2JJQ1ZzNzU4STg4QUROZUNreVlIUnFvR1JiWWNubXhpNm9fdm1sRDU3X0d0alpHUnZ2NE1ZSXRxTFY5WnhPWFZrdGpUWmNJaEswdGp3UnZiVDBXTUJROVFzeGpNT1c2RFRicWhoT0FXTTdnWkdNUzRqSHc1aV9BRDdjTTB6MVUQABjqByIQMjAwMTQwZDk4OTJjYWQ2ZSoKc2FwcGhpcmU6MzICZnI6AkZSQgVGIFNGUkoAUgUyMDgxMFoFMjA4MTBiA2FtLRMiGCIULTUyMTg4NDc2NjE0NjA1NzYyNjAwARQTKhwKFC01MjE4ODQ3NjYxNDYwNTc2MjYwEAAYAyABFA
[G1 Android Development] dwang:
Interesting, so the user-agent that is being sent by the G market app and the H market app are different.

Is this something that is configurable?
[G1 Android Development] emms007:
Hm not so strange, same as mine.

Sorry I gotta leave, see you
[G1 Android Development] koxx:
Do you find normal that I don't have any "GET", only "POST" ?

what is this "gzip" in the user agent string ? a problem when market configuration read the phone configuration ?

can somebody try to do a curl test with this ?

popopop ! tu pars pas manger comme ca la !!! ;)
[G1 Android Development] MrADeveci:
Erm, strange ..... it now no longer works!!
[G1 Android Development] :
trying this now...standby... i popped the build prop into a g build and am installing..had h version and downloaded fine about 10 mins ago....

no soup....still stuck at starting download....
[G1 Android Development] Unicornasaurus:
Maybe I did something to do this, but I find it weird that when I try to download an app from the market, I can't see it downloading in the notifications. The only way I can get to the status of the download is to go back into the market, and then go to "My Downloads"

I'm running 5.0.1Gr3
[G1 Android Development] koxx:
Same thing for everybody I think.
[G1 Android Development] funbacon:
Awesome :D. Can you remove location checking step or creat a module to fake region of sim card :D. I'm not in US and when I want to buy an application, I must plug an US sim card to my phone. I still use my country credit card in my google account.
[G1 Android Development] Joushou:
Yes, but it requires you to make your own build, and patch framework,jar.
[G1 Android Development] spy_owl2:
Did you verify that your build properties stayed the same after the install was done? Maybe there's something that changes/autogenerates it during install. Have you tried changing the file after everything is installed, rebooting and trying to download?
[G1 Android Development] :
same result...starting download and stalled...
[G1 Android Development] joeydsmith:
actually i have the latest g build and mine says unknown.
[G1 Android Development] xyrcncp:
The latest (5.0.1Gr3) says PLAT-RC33, the previous one (5.0.1Gr2) said "unknown"
[G1 Android Development] andonnguyen:
even with PLAT-RC33 the market does not download anything.
[G1 Android Development] xyrcncp:
Oh, I know...I was just saying that the latest version does say PLAT-RC33.
[G1 Android Development] bettasplash:
I am having the same problem wont download from the market. I am running the G build. I have been able to download games but no apps.
[G1 Android Development] whatchamccallum:
I have packet captures from 5.0.2H2 and 5.0.1.G3

In the H2 the downloading was successful and I see the HTTP Get requests to download the package from the Market

However on the G3 release I attempted to download the same application but there was never a GET request sent to the servers.

Both contain the exact same User-Agent

Android-Market/2 (sapphire PLAT-RC33); gzip
[G1 Android Development] hussein.j:
Good work whatchamccallum
[G1 Android Development] whatchamccallum:
Just installed 5.0.2H3 and I was able to download just fine
[G1 Android Development] :
yes its known that the H builds download fine. we need to figure out how to make the G builds download
[G1 Android Development] whatchamccallum:
There was allot of comments about google locking accounts and what not. I just wanted to say that after all my testing and packet captures for the G and H build. My account wasn't locked. It's not a matter of the account being locked but a problem with something on the G build for the market.

I want to say it has to be something in the POST commands sent but there is little to no difference except what is listed in the encoded packet information.
[G1 Android Development] :
i agree, it is not google blocking ids...something is wrong with the data stream for the market app on the G build
[G1 Android Development] Unicornasaurus:
Has anyone tried installing all the APKS(or at least ones that have ANY relation to internet access) from the G build? Maybe its just a problem with the actual Market app on the G builds
[G1 Android Development] miketuesday:
You know, I've read it a few times, and experienced it myself. The market in the latest G build DOES work. Sometimes it works right away, but usually it takes between 20 minutes and 2 hours to download the apps. I've done this with both paid apps and free apps. I know I've also encountered similar behavior on computer networks where the DNS server that the client is pointing to is very slow or a lot of hops away, could it be, and I'm just throwing this out there I have no idea, that maybe the servers that G points to are different from the H ones, or, that the APN assigns G and H builds different subnets etc. when it does it's first sign in.

Anyway, if you set your G build G1 to download apps and just let it sit, eventually they'll all download. Confirmed on EDGE, G1, 5.0.1Gr3 A2SD.
[G1 Android Development] pagubg:
I am using onyl wi-fi connection at my office and my home place and can not confirm that this is a dns problem. The problem is somewhere else. My DNS servers work perfectly (i have a lot of them). I have never used 3g/gprs connection. Now i will try to download something until my workday finish (more than 4 hours). Will post the result later.
[G1 Android Development] hussein.j:
A lot of people are saying "just wait, its slow", but this hasn't been the case for me. No downloads on my 5.0.1G r3, unlocked G1 on WiFi or T-Mobile UK 3G even after waiting 10+ hours.
[G1 Android Development] koxx:
I confirm.

In france, with 5.0.1g3, i have never been able to download any app. 3 days since I asked apps....
[G1 Android Development] xyrcncp:
I simply gave up on the Market issue. I had an application stuck on "Starting Download" for 2.5 days and said F it.
[G1 Android Development] emms007:
I think Dude's build will eventually replace the former G builds. There's no need to keep looking for a market fix.
[G1 Android Development] ivanmmj:
Some apps don't download after 8 hours, some download after 10 minutes. It seems pretty eratic to me.
[G1 Android Development] spy_owl2:
Without having any more information, it does seem like it's a bug/incompatibility on the side of the Market app in the G builds.

Next thing I'd try is capturing the debug log; if there's nothing interesting there, see if the Market apk from Dude's build works on these G builds.

I have always been on the H build myself, and as much as I'd like to help out, don't really have a lot of time to mess with different builds.
[G1 Android Development] :
i tried to repack the update with dude's market app, but it wouldnt open, just kept crashing....im at a loss.
[G1 Android Development] spy_owl2:
Are you able to do adb logcat and capture the debug log of either when default market fails to donwload apps on G build, or when dude's market crashes on G?
[G1 Android Development] PoPpiLLs:
This is what I got from logcat on a Gr2 build when I tried to download a free app

I/ActivityManager( 53): Starting activity: Intent { action=android.intent.action.VIEW comp={com.android.vending/com.android.vending.AssetInfoActivity} (has extras) }

D/dalvikvm( 448): GC freed 6356 objects / 485064 bytes in 150ms

I/ActivityManager( 53): Displayed activity com.android.vending/.AssetInfoActivity: 483 ms

I/installd( 35): free_cache(542814) avail 28168192

I/ActivityManager( 53): Starting activity: Intent { action=android.intent.action.VIEW comp={com.android.vending/com.android.vending.AssetPermissionsSubActivity} (has extras) }

W/InputManagerService( 53): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4397f4d0

I/ActivityManager( 53): Displayed activity com.android.vending/.AssetPermissionsSubActivity: 258 ms

W/vending ( 448): com.android.vending.BaseConfirmSubActivity$1.handleRequest(): unknown requestId: 446

I/NotificationService( 53): enqueueToast pkg=com.android.vending callback=android.app.ITransientNotification$Stub$Proxy@438ce438 duration=1

D/dalvikvm( 448): GC freed 13957 objects / 872520 bytes in 175ms

D/dalvikvm( 448): GC freed 13292 objects / 940240 bytes in 169ms

W/Smack/Packet( 128): notify conn break (IOEx), close connection

D/Smack ( 128): [XMPPConn] close connection, notifyClosed=false

D/dalvikvm( 53): GC freed 8236 objects / 396984 bytes in 241ms
[G1 Android Development] Unicornasaurus:
This seems suspicious to me..
[G1 Android Development] spy_owl2:
Just curious if you can try this:

1. start google talk, make sure you can and are signed in

2. press home button without backing out of google talk

3. start market, and attempt a download

Can you post what you get in the logcat when you do the above?
[G1 Android Development] spy_owl2:
It does - I don't know what market downloads have to do with google talk (xmpp is jabber protocol), but obviously there's some kind of connection between the two.
[G1 Android Development] Unicornasaurus:
Looks like that same XMPPConn connection is closing. As for the marketplace having to do with google talk..maybe it's something to do with accessing your gmail account/timing out and closing the connection.

But, since there's no way to test out the marketplace without a Google account..you can't really troubleshoot it..
[G1 Android Development] ivanmmj:
My question is why the Dude's edition has a working market when it's also compiled from the official google cupcake?

Maybe it's already been mentioned and I missed it.
[G1 Android Development] bassbox:
dunno@above but again this morning i turned off airplane mode when i woke up and

voila

2 of my 3apps who were "downloading" since hours installed only 1minute after

MyTracks and MyMapEditor !

strange problem--
[G1 Android Development] MontAlbert:
not sure if this has been mentioned... but could the launcher be the problem- see this post:

http://xdaforums.com/showpost.php?p=3668518&postcount=156
[G1 Android Development] AustinKnight45:
Whatever "The Dude" has going on with his build it loads up as the_dream when you first sign in and market works so hay we could start there, the rest of his build inst stable enough for me yet but hay its getting there. ;)
[G1 Android Development] whatchamccallum:
By the way on my failed G build and working H build the IP Addressed used by the Market servers was the same. I was connecting to 209.85.225.100
[G1 Android Development] Unicornasaurus:
209.85.225.100 is google.com
[G1 Android Development] robb79:
I'm on the G version, 5.0.1 no revisions, no apps on SD. My market downloads just wouldn't start downloading. They'd sit there forever, "starting download"

I'm speaking in the past tense because they are working perfectly now. Paid/Free apps/games. All downloading without a hitch on Wifi, and network. I'm in TX, USA. And YES, I'm POSITIVE I have the G build. Maybe Google changed something on their side?
[G1 Android Development] djdant:
My Market is working for me on The G build Just Started this morning give it a try people :D
[G1 Android Development] AbsoluteDesignz:
Market is working !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Wooooooooooooooooooo
[G1 Android Development] dwang:
market working for me as well
[G1 Android Development] bouyark:
It's alive!!!

Same here. The G build is close to being "perfect" now.
[G1 Android Development] koxx:
SO GOOD !!!!
[G1 Android Development] robb79:
Anyone's market stop again? Mine was fine last night, not working this morning. Strange too, now I get a "download not successful" notification, instead of the stall on beginning download. It's gotta be changes being made to the market by google. It was nice while it lasted....
[G1 Android Development] robb79:
Working again!