diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-29 00:09:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 00:09:27 +0200 |
commit | a91d12ab945222b0fc89d4634e3e781ba8941f33 (patch) | |
tree | f73e9053bbe0a5a3cd6587e14fb1a3f07bc19c71 /platform/android/export | |
parent | 9a8a0e20e5b73b6536c92b7b68e827e4f6d18f48 (diff) | |
parent | 2a5ee5dec93b768f6caeb109be2a052ca610e747 (diff) |
Merge pull request #10531 from RandomShaper/remove-old-android-setting
Sanitize Android debug
Diffstat (limited to 'platform/android/export')
-rw-r--r-- | platform/android/export/export.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index eff3a7178d..a554785591 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1073,11 +1073,7 @@ public: //export_temp ep.step("Exporting APK", 0); - bool use_adb_over_usb = bool(EDITOR_DEF("export/android/use_remote_debug_over_adb", true)); - - if (use_adb_over_usb) { - p_debug_flags |= DEBUG_FLAG_REMOTE_DEBUG_LOCALHOST; - } + p_debug_flags |= DEBUG_FLAG_REMOTE_DEBUG_LOCALHOST; String export_to = EditorSettings::get_singleton()->get_settings_path() + "/tmp/tmpexport.apk"; Error err = export_project(p_preset, true, export_to, p_debug_flags); @@ -1123,7 +1119,7 @@ public: return ERR_CANT_CREATE; } - if (use_adb_over_usb) { + if (p_debug_flags & DEBUG_FLAG_REMOTE_DEBUG) { args.clear(); args.push_back("-s"); @@ -1142,6 +1138,9 @@ public: OS::get_singleton()->execute(adb, args, true, NULL, NULL, &rv); print_line("Reverse result: " + itos(rv)); + } + + if (p_debug_flags & DEBUG_FLAG_DUMB_CLIENT) { int fs_port = EditorSettings::get_singleton()->get("filesystem/file_server/port"); @@ -1724,7 +1723,6 @@ void register_android_exporter() { EDITOR_DEF("export/android/force_system_user", false); EDITOR_DEF("export/android/timestamping_authority_url", ""); - EDITOR_DEF("export/android/use_remote_debug_over_adb", false); EDITOR_DEF("export/android/shutdown_adb_on_exit", true); Ref<EditorExportAndroid> exporter = Ref<EditorExportAndroid>(memnew(EditorExportAndroid)); |