From cf5e8d66d2ce1dc8dd2a645210deaab3b4072b73 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 15 Apr 2013 13:04:28 +0100 Subject: [PATCH] Debuggable apk = build failure --- fdroidserver/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fdroidserver/build.py b/fdroidserver/build.py index 0a4c3e6a..54b0b287 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -390,6 +390,10 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, extlib_dir, tmp_dir, re.S|re.M).group(1) src = os.path.join(bindir, src) + # Make sure it's not debuggable... + if common.isApkDebuggable(src): + raise BuildException("APK is debuggable") + # By way of a sanity check, make sure the version and version # code in our new apk match what we expect... print "Checking " + src