mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03: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:
parent
9f553186e8
commit
63d4d46291
1 changed files with 3 additions and 1 deletions
|
@ -1268,6 +1268,8 @@ def scan_apk_androguard(apk, apkfile):
|
||||||
and feature != "android.hardware.screen.landscape":
|
and feature != "android.hardware.screen.landscape":
|
||||||
if feature.startswith("android.feature."):
|
if feature.startswith("android.feature."):
|
||||||
feature = feature[16:]
|
feature = feature[16:]
|
||||||
|
required = item.attrib.get('{' + xml.nsmap['android'] + '}required')
|
||||||
|
if required is None or required == 'true':
|
||||||
apk['features'].append(feature)
|
apk['features'].append(feature)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue