summaryrefslogtreecommitdiffstats
path: root/twrpAdbBuFifo.cpp
diff options
context:
space:
mode:
authorbig biff <bigbiff@teamw.in>2018-12-24 16:08:07 +0100
committerGerrit Code Review <gerrit2@gerrit.omnirom.org>2018-12-24 16:08:07 +0100
commit09ee3ea4227fd7046b5b0d54dc83371e218786d1 (patch)
tree5f2fc1a1e59572d5c66d335eb59bb63aa8f277bf /twrpAdbBuFifo.cpp
parentMerge "Add option to use ro.serialno for generating device id" into android-9.0 (diff)
parenttwrp: use ANDROID_ROOT environment variable (diff)
downloadandroid_bootable_recovery-09ee3ea4227fd7046b5b0d54dc83371e218786d1.tar
android_bootable_recovery-09ee3ea4227fd7046b5b0d54dc83371e218786d1.tar.gz
android_bootable_recovery-09ee3ea4227fd7046b5b0d54dc83371e218786d1.tar.bz2
android_bootable_recovery-09ee3ea4227fd7046b5b0d54dc83371e218786d1.tar.lz
android_bootable_recovery-09ee3ea4227fd7046b5b0d54dc83371e218786d1.tar.xz
android_bootable_recovery-09ee3ea4227fd7046b5b0d54dc83371e218786d1.tar.zst
android_bootable_recovery-09ee3ea4227fd7046b5b0d54dc83371e218786d1.zip
Diffstat (limited to 'twrpAdbBuFifo.cpp')
-rw-r--r--twrpAdbBuFifo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twrpAdbBuFifo.cpp b/twrpAdbBuFifo.cpp
index f98eb0556..22bfa4054 100644
--- a/twrpAdbBuFifo.cpp
+++ b/twrpAdbBuFifo.cpp
@@ -309,7 +309,7 @@ bool twrpAdbBuFifo::Restore_ADB_Backup(void) {
part_settings.Part->Set_Backup_FileName(Backup_FileName);
PartitionManager.Set_Restore_Files(path);
- if (path.compare("/system") == 0) {
+ if (path.compare(PartitionManager.Get_Android_Root_Path()) == 0) {
if (part_settings.Part->Is_Read_Only()) {
if (!twadbbu::Write_TWERROR())
LOGERR("Unable to write to TWRP ADB Backup.\n");