In bug 769421 we got a way to tell if we are on the telefonica marketplace or not and in bug 776973 we have a flag to tell whether apps have flash in them or not. This bug is about combining the power of those two bugs: If you're browsing the regular stores, you see all the apps. If you're browsing the telefonica store, we don't show you any apps with flash in the search/browse pages. If you go directly to the detail page you can still see the app.
Note that this is for all B2G form factors, not just the Telefonica store.
basta pointed out bug 777710 - are we OK just detecting mobile in general (using the existing mechanism of request.MOBILE) for this feature?
That's fine, but for the record, we do have a way of determining b2g or not outside of the UA.
Flash apps should be excluded from only the B2G stores - not from all mobile devices. There's not a convenient way to check for this unfortunately. Also - and I'm not sure which bug this would be - desktop users should have the option of excluding Flash apps in the search results (and browse pages).