Merge remote branch 'upstream/master'

This commit is contained in:
Ivo Ugrina 2011-10-08 01:20:32 +02:00
commit 1579ca76ba

View file

@ -127,6 +127,9 @@ for apkfile in glob.glob(os.path.join('repo','*.apk')):
if line.startswith("uses-feature:"):
pat = re.compile(".*'([^']*)'.*")
perm = re.match(pat, line).group(1)
#Filter out this, it's only added with the latest SDK tools and
#causes problems for lots of apps.
if perm != "android.hardware.screen.portrait":
if perm.startswith("android.feature."):
perm = perm[16:]
thisinfo['features'].append(perm)