moukail/android-market-api

Can't find 2.0 apps

Closed this issue · 10 comments

What steps will reproduce the problem?
1. Search for pname:com.google.earth

What is the expected output? What do you see instead?
An array with Google Earth at the first position. I see an empty array.

I think is useful to access the market as a Nexus One or any 2.0 device.
You are accessing as a 1.5 or 1.6 and you can't retrieve info about new
programs.


Original issue reported on code.google.com by ale...@gmail.com on 10 Mar 2010 at 12:27

I'm not sure that Android 2.0 apps are the culprit on this issue.  Or there 
could be
multiple things going on.

I have discovered many 1.5 and 1.6 apps that don't show up in the query 
results.  I
tried different providers and Locales and they never show up.  Examples:
pname:net.geekherd.airplanemode, pname:com.compareeverywhere

I think there might be a problem issuing a query in the form "pname:<package>", 
or
that there's something else that must be set to search by package name.

Original comment by ldonel...@gmail.com on 10 Mar 2010 at 7:18

you may want to check the sdk version parameter in MarketSession.java.



Original comment by thesuper...@gmail.com on 19 Mar 2010 at 1:21

I played with the setDeviceAndSdkVersion RequestContext.Builder method.  It 
doesn't
seem to have any affect on the search results.  

E.g., I tried:
context.setDeviceAndSdkVersion("sapphire:3");
context.setDeviceAndSdkVersion("sapphire:6");
context.setDeviceAndSdkVersion("blah:7777");

All three returned the same search results, none that included Android 2.0 apps.

Original comment by ldonel...@gmail.com on 19 Mar 2010 at 4:17

Finally I've found a device with 2.1 to play.

You can use "sapphire:7" to receive 2.0 apps.

Original comment by ale...@gmail.com on 19 Mar 2010 at 4:24

Works.  Thanks!

Original comment by ldonel...@gmail.com on 19 Mar 2010 at 10:56

Thanks to alexgr, fixed in 0.3 release

Original comment by thiel.al...@gmail.com on 20 Mar 2010 at 8:32

  • Changed state: Fixed
Hmm.  I'm seeing this issue again, pname:com.google.earth is one of my test 
cases, I'm no longer seeing it returned for "sapphire:7".

Anyone else able to find it by searching for the package?

-Loren

Original comment by ldonel...@gmail.com on 30 Jun 2010 at 10:57

I think actually you can download Google Earth only from a Nexus One. I don't 
have this phone and I can't see what the real packet contains.

Original comment by ale...@gmail.com on 30 Jun 2010 at 11:02

Oh.  Interesting.  
I have a Nexus One so I could test this but I don't know how to check out the 
packets.  I've tried playing with Wireshark in the past but couldn't get it 
running on my Mac.

Original comment by ldonel...@gmail.com on 30 Jun 2010 at 11:23

I've used this on my Magic, and works fine: http://strazzere.com/blog/?p=286

Use tcpdump to capture packets while you are browsing the market. Then, take 
the request parameters and uncompile it (base64 + protocol buffer).

Original comment by ale...@gmail.com on 1 Jul 2010 at 9:17