summaryrefslogtreecommitdiffstats
path: root/twrp.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 /twrp.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 'twrp.cpp')
-rw-r--r--twrp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 3102efdc0..2399c0bb3 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -333,7 +333,7 @@ int main(int argc, char **argv) {
#ifndef TW_OEM_BUILD
// Check if system has never been changed
- TWPartition* sys = PartitionManager.Find_Partition_By_Path("/system");
+ TWPartition* sys = PartitionManager.Find_Partition_By_Path(PartitionManager.Get_Android_Root_Path());
TWPartition* ven = PartitionManager.Find_Partition_By_Path("/vendor");
if (sys) {