summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-01-06 20:45:54 +0100
committerMatt Mower <mowerm@gmail.com>2017-01-18 21:10:34 +0100
commit3626bdc80056c21e636659fc385791482e32b346 (patch)
treed9dbd585dc20f8791f5a8b45eaa45502b2adcb9c /twrp.cpp
parentgui: Initialize button render position (diff)
downloadandroid_bootable_recovery-3626bdc80056c21e636659fc385791482e32b346.tar
android_bootable_recovery-3626bdc80056c21e636659fc385791482e32b346.tar.gz
android_bootable_recovery-3626bdc80056c21e636659fc385791482e32b346.tar.bz2
android_bootable_recovery-3626bdc80056c21e636659fc385791482e32b346.tar.lz
android_bootable_recovery-3626bdc80056c21e636659fc385791482e32b346.tar.xz
android_bootable_recovery-3626bdc80056c21e636659fc385791482e32b346.tar.zst
android_bootable_recovery-3626bdc80056c21e636659fc385791482e32b346.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/twrp.cpp b/twrp.cpp
index ff40eb11c..88df452e7 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -176,11 +176,9 @@ int main(int argc, char **argv) {
TWPartition* misc = PartitionManager.Find_Partition_By_Path("/misc");
if (misc != NULL) {
if (misc->Current_File_System == "emmc") {
- set_misc_device("emmc", misc->Actual_Block_Device.c_str());
- } else if (misc->Current_File_System == "mtd") {
- set_misc_device("mtd", misc->MTD_Name.c_str());
+ set_misc_device(misc->Actual_Block_Device);
} else {
- LOGERR("Unknown file system for /misc\n");
+ LOGERR("Only emmc /misc is supported\n");
}
}
get_args(&argc, &argv);