diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2019-01-17 23:19:24 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2019-01-17 23:19:55 +0100 |
commit | 54970bb1a9a7fb4a6326b7b784ef360bb182f6a4 (patch) | |
tree | 7c45c774818da3c6ac9c79e5ded6baf3ccb65f8e | |
parent | Add metadata decrypt support for FBE (diff) | |
download | android_bootable_recovery-54970bb1a9a7fb4a6326b7b784ef360bb182f6a4.tar android_bootable_recovery-54970bb1a9a7fb4a6326b7b784ef360bb182f6a4.tar.gz android_bootable_recovery-54970bb1a9a7fb4a6326b7b784ef360bb182f6a4.tar.bz2 android_bootable_recovery-54970bb1a9a7fb4a6326b7b784ef360bb182f6a4.tar.lz android_bootable_recovery-54970bb1a9a7fb4a6326b7b784ef360bb182f6a4.tar.xz android_bootable_recovery-54970bb1a9a7fb4a6326b7b784ef360bb182f6a4.tar.zst android_bootable_recovery-54970bb1a9a7fb4a6326b7b784ef360bb182f6a4.zip |
-rw-r--r-- | partition.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp index ee346863d..acf382a7f 100644 --- a/partition.cpp +++ b/partition.cpp @@ -3045,7 +3045,9 @@ int TWPartition::Check_Lifetime_Writes() { Mount_Read_Only = true; if (Mount(false)) { Find_Actual_Block_Device(); - string block = basename(Actual_Block_Device.c_str()); + string temp = Actual_Block_Device; + Find_Real_Block_Device(temp, false); + string block = basename(temp.c_str()); string file = "/sys/fs/" + Current_File_System + "/" + block + "/lifetime_write_kbytes"; string result; if (TWFunc::Path_Exists(file)) { |