diff --git a/MANIFEST.in b/MANIFEST.in index 87b82802..9ea77a1b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -42,6 +42,7 @@ include locale/zh_Hant/LC_MESSAGES/fdroidserver.po include makebuildserver include README.md include tests/androguard_test.py +include tests/apk.embedded_1.apk include tests/bad-unicode-*.apk include tests/build.TestCase include tests/build-tools/17.0.0/aapt-output-com.moez.QKSMS_182.txt diff --git a/tests/apk.embedded_1.apk b/tests/apk.embedded_1.apk new file mode 100644 index 00000000..f0dd47f0 Binary files /dev/null and b/tests/apk.embedded_1.apk differ diff --git a/tests/scanner.TestCase b/tests/scanner.TestCase index d1a0f63b..c40fc6a1 100755 --- a/tests/scanner.TestCase +++ b/tests/scanner.TestCase @@ -224,6 +224,12 @@ class ScannerTest(unittest.TestCase): fdroidserver.scanner.scan_binary(apkfile), 'Did not find bad code signature in binary', ) + apkfile = os.path.join(self.basedir, 'apk.embedded_1.apk') + self.assertEqual( + 1, + fdroidserver.scanner.scan_binary(apkfile), + 'Did not find bad code signature in binary', + ) def test_build_local_scanner(self): """`fdroid build` calls scanner functions, test them here"""