Merge remote-tracking branch 'origin/android-9.0' into android-10.0
Change-Id: Ie850f431f0d2c39c86b9c10701676a24770ab447
This commit is contained in:
+11
-1
@@ -341,7 +341,7 @@ static int Run_Update_Binary(const char *path, ZipWrap *Zip, int* wipe_cache, zi
|
||||
}
|
||||
|
||||
int TWinstall_zip(const char* path, int* wipe_cache) {
|
||||
int ret_val, zip_verify = 1;
|
||||
int ret_val, zip_verify = 1, unmount_system = 1;
|
||||
|
||||
if (strcmp(path, "error") == 0) {
|
||||
LOGERR("Failed to get adb sideload file: '%s'\n", path);
|
||||
@@ -361,6 +361,8 @@ int TWinstall_zip(const char* path, int* wipe_cache) {
|
||||
}
|
||||
}
|
||||
|
||||
DataManager::GetValue(TW_UNMOUNT_SYSTEM, unmount_system);
|
||||
|
||||
#ifndef TW_OEM_BUILD
|
||||
DataManager::GetValue(TW_SIGNED_ZIP_VERIFY_VAR, zip_verify);
|
||||
#endif
|
||||
@@ -412,6 +414,14 @@ int TWinstall_zip(const char* path, int* wipe_cache) {
|
||||
return INSTALL_CORRUPT;
|
||||
}
|
||||
|
||||
if (unmount_system) {
|
||||
gui_msg("unmount_system=Unmounting System...");
|
||||
if(!PartitionManager.UnMount_By_Path(PartitionManager.Get_Android_Root_Path(), true)) {
|
||||
gui_err("unmount_system_err=Failed unmounting System");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
time_t start, stop;
|
||||
time(&start);
|
||||
if (Zip.EntryExists(ASSUMED_UPDATE_BINARY_NAME)) {
|
||||
|
||||
Reference in New Issue
Block a user