Add -r flag to adb install for keep app user data

This commit is contained in:
sanikoyes 2016-03-18 18:11:55 +08:00
parent 5b67305ebb
commit 9e026fecef
1 changed files with 1 additions and 0 deletions

View File

@ -1567,6 +1567,7 @@ Error EditorExportPlatformAndroid::run(int p_device, int p_flags) {
args.push_back("-s"); args.push_back("-s");
args.push_back(devices[p_device].id); args.push_back(devices[p_device].id);
args.push_back("install"); args.push_back("install");
args.push_back("-r");
args.push_back(export_to); args.push_back(export_to);
err = OS::get_singleton()->execute(adb,args,true,NULL,NULL,&rv); err = OS::get_singleton()->execute(adb,args,true,NULL,NULL,&rv);