From 05c620b7ad8633ac52249a17ebb137c635ef3a35 Mon Sep 17 00:00:00 2001 From: sanikoyes Date: Fri, 18 Mar 2016 18:11:55 +0800 Subject: [PATCH] Add -r flag to adb install for keep app user data (cherry picked from commit 9e026fecef94c5bc52ecddf6db5ec60c76b2e3be) --- platform/android/export/export.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 0f1cbdc73a4..e65a712a170 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1567,6 +1567,7 @@ Error EditorExportPlatformAndroid::run(int p_device, int p_flags) { args.push_back("-s"); args.push_back(devices[p_device].id); args.push_back("install"); + args.push_back("-r"); args.push_back(export_to); err = OS::get_singleton()->execute(adb,args,true,NULL,NULL,&rv);