mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
check for <application android:testOnly="true">
This adds a check for "testOnly" to the existing "debuggable" check, since they are very similar. We should really be refactoring all the checks into a more reasonable setup. Since "debuggable" and "testOnly" are both set in the same place (`<application>` in _AndroidManifest.xml_) and are both set by the same process (running debug builds), I thought it would be OK to include both in the same place. Plus it was a one-line change.
This commit is contained in:
parent
0cf1749ec3
commit
9c65bed4a5
6 changed files with 26 additions and 16 deletions
|
|
@ -1616,8 +1616,10 @@ def process_apk(apkcache, apkfilename, repodir, knownapks, use_date_from_apk=Fal
|
|||
return True, None, False
|
||||
|
||||
# Check for debuggable apks...
|
||||
if common.is_apk_and_debuggable(apkfile):
|
||||
logging.warning('{0} is set to android:debuggable="true"'.format(apkfile))
|
||||
if common.is_debuggable_or_testOnly(apkfile):
|
||||
logging.warning(
|
||||
"%s: debuggable or testOnly set in AndroidManifest.xml" % apkfile
|
||||
)
|
||||
|
||||
if options.rename_apks:
|
||||
n = apk['packageName'] + '_' + str(apk['versionCode']) + '.apk'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue