diff options
Diffstat (limited to 'twrp.cpp')
-rw-r--r-- | twrp.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -35,6 +35,7 @@ extern "C" { extern "C" { #include "gui/gui.h" +#include "set_metadata.h" } #include "twcommon.h" #include "twrp-functions.hpp" @@ -274,6 +275,12 @@ int main(int argc, char **argv) { if (gui_startPage("decrypt") != 0) { LOGERR("Failed to start decrypt GUI page.\n"); } + } else if (datamedia) { + if (tw_get_default_metadata(DataManager::GetSettingsStoragePath().c_str()) != 0) { + LOGERR("Failed to get default contexts and file mode for storage files.\n"); + } else { + LOGINFO("Got default contexts and file mode for storage files.\n"); + } } // Read the settings file |