mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
make is_apk_and_debuggable() default to using androguard before aapt
This commit is contained in:
parent
847bbb6e43
commit
52b3436ff6
4 changed files with 28 additions and 10 deletions
|
|
@ -140,7 +140,7 @@ class CommonTest(unittest.TestCase):
|
|||
testfiles.append(os.path.join(self.basedir, 'urzip-badsig.apk'))
|
||||
testfiles.append(os.path.join(self.basedir, 'urzip-badcert.apk'))
|
||||
for apkfile in testfiles:
|
||||
debuggable = fdroidserver.common.isApkAndDebuggable(apkfile)
|
||||
debuggable = fdroidserver.common.is_apk_and_debuggable(apkfile)
|
||||
self.assertTrue(debuggable,
|
||||
"debuggable APK state was not properly parsed!")
|
||||
# these are set NOT debuggable
|
||||
|
|
@ -148,7 +148,7 @@ class CommonTest(unittest.TestCase):
|
|||
testfiles.append(os.path.join(self.basedir, 'urzip-release.apk'))
|
||||
testfiles.append(os.path.join(self.basedir, 'urzip-release-unsigned.apk'))
|
||||
for apkfile in testfiles:
|
||||
debuggable = fdroidserver.common.isApkAndDebuggable(apkfile)
|
||||
debuggable = fdroidserver.common.is_apk_and_debuggable(apkfile)
|
||||
self.assertFalse(debuggable,
|
||||
"debuggable APK state was not properly parsed!")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue