summaryrefslogtreecommitdiffstats
path: root/twrpAdbBuFifo.cpp
diff options
context:
space:
mode:
authorCaptain Throwback <captainthrowback@gmail.com>2018-07-27 16:05:24 +0200
committerCaptain Throwback <captainthrowback@hotmail.com>2018-08-24 18:47:45 +0200
commit9d6feb53115e2dcc49a644400da4d62a16c1c3c6 (patch)
treec5d5778cd617d8d60231cebf87f16527a7f47313 /twrpAdbBuFifo.cpp
parentMerge AOSP android-9.0.0_r3 (diff)
downloadandroid_bootable_recovery-9d6feb53115e2dcc49a644400da4d62a16c1c3c6.tar
android_bootable_recovery-9d6feb53115e2dcc49a644400da4d62a16c1c3c6.tar.gz
android_bootable_recovery-9d6feb53115e2dcc49a644400da4d62a16c1c3c6.tar.bz2
android_bootable_recovery-9d6feb53115e2dcc49a644400da4d62a16c1c3c6.tar.lz
android_bootable_recovery-9d6feb53115e2dcc49a644400da4d62a16c1c3c6.tar.xz
android_bootable_recovery-9d6feb53115e2dcc49a644400da4d62a16c1c3c6.tar.zst
android_bootable_recovery-9d6feb53115e2dcc49a644400da4d62a16c1c3c6.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");