ADB Backup: fix adb restore issues
Set Backup_FileName on adb backup to fix restore. Set read_from_adb after EOF to return properly from newer adb client prompt. Create setter and getter for Backup_FileName for openrecoveryscript.cpp which is not a friend class. Fix condition for twrpTar::Get_Size() and adb backup. Change-Id: I7eb8168fa3416366b996e220cecbc0e1bcec5e8e
This commit is contained in:
@@ -915,6 +915,10 @@ int TWPartitionManager::Run_Backup(bool adbbackup) {
|
||||
bool TWPartitionManager::Restore_Partition(PartitionSettings *part_settings) {
|
||||
time_t Start, Stop;
|
||||
|
||||
if (part_settings->adbbackup) {
|
||||
part_settings->Part->Set_Backup_FileName(part_settings->Part->Backup_Name + "." + part_settings->Part->Current_File_System + ".win");
|
||||
}
|
||||
|
||||
TWFunc::SetPerformanceMode(true);
|
||||
|
||||
time(&Start);
|
||||
|
||||
Reference in New Issue
Block a user