@@ -57,7 +57,7 @@ void usage(void)
5757 fprintf (stderr,
5858 " %s p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \\\n "
5959 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n "
60- " [--min-sdk-version VAL] [--target-sdk-version VAL] \\\n "
60+ " [--debug-mode] [-- min-sdk-version VAL] [--target-sdk-version VAL] \\\n "
6161 " [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \\\n "
6262 " [--rename-manifest-package PACKAGE] \\\n "
6363 " [--rename-instrumentation-target-package PACKAGE] \\\n "
@@ -123,6 +123,9 @@ void usage(void)
123123 " -0 specifies an additional extension for which such files will not\n "
124124 " be stored compressed in the .apk. An empty string means to not\n "
125125 " compress any files at all.\n "
126+ " --debug-mode\n "
127+ " inserts android:debuggable=\" true\" in to the application node of the\n "
128+ " manifest, making the application debuggable even on production devices.\n "
126129 " --min-sdk-version\n "
127130 " inserts android:minSdkVersion in to manifest. If the version is 7 or\n "
128131 " higher, the default encoding for resources will be in UTF-8.\n "
@@ -389,7 +392,9 @@ int main(int argc, char* const argv[])
389392 }
390393 break ;
391394 case ' -' :
392- if (strcmp (cp, " -min-sdk-version" ) == 0 ) {
395+ if (strcmp (cp, " -debug-mode" ) == 0 ) {
396+ bundle.setDebugMode (true );
397+ } else if (strcmp (cp, " -min-sdk-version" ) == 0 ) {
393398 argc--;
394399 argv++;
395400 if (!argc) {
0 commit comments