diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-12-16 14:47:58 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2016-12-16 17:02:16 +0100 |
commit | b4bff5e9d1f514063aaef9ffad870fe13ed70bfb (patch) | |
tree | 60db8fe05e9a6fc889a11085f1216e0359af51b8 /twrp-functions.cpp | |
parent | TWRP Language Update (diff) | |
download | android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.gz android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.bz2 android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.lz android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.xz android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.zst android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.zip |
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r-- | twrp-functions.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp index 9b0356ff8..92d3a3b9d 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -788,7 +788,10 @@ string TWFunc::System_Property_Get(string Prop_Name) { string propvalue; if (!PartitionManager.Mount_By_Path("/system", true)) return propvalue; - if (TWFunc::read_file("/system/build.prop", buildprop) != 0) { + string prop_file = "/system/build.prop"; + if (!TWFunc::Path_Exists(prop_file)) + prop_file = "/system/system/build.prop"; // for devices with system as a root file system (e.g. Pixel) + if (TWFunc::read_file(prop_file, buildprop) != 0) { LOGINFO("Unable to open /system/build.prop for getting '%s'.\n", Prop_Name.c_str()); DataManager::SetValue(TW_BACKUP_NAME, Get_Current_Date()); if (!mount_state) |