mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
Filter out trouble-making feature
This commit is contained in:
parent
49293319b7
commit
87e7d42b2f
1 changed files with 6 additions and 3 deletions
|
@ -127,6 +127,9 @@ for apkfile in glob.glob(os.path.join('repo','*.apk')):
|
||||||
if line.startswith("uses-feature:"):
|
if line.startswith("uses-feature:"):
|
||||||
pat = re.compile(".*'([^']*)'.*")
|
pat = re.compile(".*'([^']*)'.*")
|
||||||
perm = re.match(pat, line).group(1)
|
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."):
|
if perm.startswith("android.feature."):
|
||||||
perm = perm[16:]
|
perm = perm[16:]
|
||||||
thisinfo['features'].append(perm)
|
thisinfo['features'].append(perm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue