chiark / gitweb /
Filter out trouble-making feature
authorCiaran Gultnieks <ciaran@ciarang.com>
Fri, 7 Oct 2011 12:29:13 +0000 (13:29 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Fri, 7 Oct 2011 12:29:13 +0000 (13:29 +0100)
update.py

index 96f52889fbffe080b65b205bd0f3500d5410a26c..2c6a80626431f87fa5693ea20307aec4712d9ed8 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -127,9 +127,12 @@ 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)
-            if perm.startswith("android.feature."):
-                perm = perm[16:]
-            thisinfo['features'].append(perm)
+            #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)
 
     if not thisinfo.has_key('sdkversion'):
         print "  WARNING: no SDK version information found"