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

(cherry picked from commit 9e026fecef)
This commit is contained in:
sanikoyes 2016-03-18 18:11:55 +08:00 committed by Rémi Verschelde
parent ca1ca6c7df
commit 05c620b7ad
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);