mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-17 22:47:16 -04:00
update: 'features' list only includes required features
The F-Droid index 'features' list is not the same as what is in the AndroidManifest.xml. It only includes "required" features, for example.
This commit is contained in:
@@ -1268,7 +1268,9 @@ def scan_apk_androguard(apk, apkfile):
|
||||
and feature != "android.hardware.screen.landscape":
|
||||
if feature.startswith("android.feature."):
|
||||
feature = feature[16:]
|
||||
apk['features'].append(feature)
|
||||
required = item.attrib.get('{' + xml.nsmap['android'] + '}required')
|
||||
if required is None or required == 'true':
|
||||
apk['features'].append(feature)
|
||||
|
||||
|
||||
def process_apk(apkcache, apkfilename, repodir, knownapks, use_date_from_apk=False,
|
||||
|
||||
Reference in New Issue
Block a user