You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #10531 from RandomShaper/remove-old-android-setting
Sanitize Android debug
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user