summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2016-03-18 18:11:55 +0800
committersanikoyes <sanikoyes@163.com>2016-03-18 18:11:55 +0800
commit9e026fecef94c5bc52ecddf6db5ec60c76b2e3be (patch)
tree0c4ab442caac25f2659bb39aa50bc8a523608f11 /platform
parent5b67305ebb466cea3b767d4abd2f360ebadf3414 (diff)
Add -r flag to adb install for keep app user data
Diffstat (limited to 'platform')
-rw-r--r--platform/android/export/export.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp
index 0f1cbdc73a..e65a712a17 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);