mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +03:00
update: throw exception for APKs with invalid Application ID
Android Application IDs must be valid Java Package Names. While the build tools likely validate the Application ID, it is possible to manually create a malicious APK.
This commit is contained in:
parent
5d161cc9fd
commit
11b3e5be3a
2 changed files with 5 additions and 1 deletions
|
@ -1511,7 +1511,7 @@ def parse_androidmanifests(paths, app):
|
|||
if max_version is None:
|
||||
max_version = "Unknown"
|
||||
|
||||
if max_package and not is_valid_package_name(max_package):
|
||||
if max_package and not is_valid_java_package_name(max_package):
|
||||
raise FDroidException(_("Invalid package name {0}").format(max_package))
|
||||
|
||||
return (max_version, max_vercode, max_package)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue