summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-12-11 17:00:45 +0100
committerEthan Yonker <dees_troy@teamw.in>2014-12-12 16:20:42 +0100
commit4b94cfd3910de26dbca64cf746a899cbc635158b (patch)
tree9b452fb2632413e51cb3b9fd8b28e6a2bd0352f5 /twrp.cpp
parentFix loading of png images in custom themes (diff)
downloadandroid_bootable_recovery-4b94cfd3910de26dbca64cf746a899cbc635158b.tar
android_bootable_recovery-4b94cfd3910de26dbca64cf746a899cbc635158b.tar.gz
android_bootable_recovery-4b94cfd3910de26dbca64cf746a899cbc635158b.tar.bz2
android_bootable_recovery-4b94cfd3910de26dbca64cf746a899cbc635158b.tar.lz
android_bootable_recovery-4b94cfd3910de26dbca64cf746a899cbc635158b.tar.xz
android_bootable_recovery-4b94cfd3910de26dbca64cf746a899cbc635158b.tar.zst
android_bootable_recovery-4b94cfd3910de26dbca64cf746a899cbc635158b.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/twrp.cpp b/twrp.cpp
index a633becfb..f76ab641d 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -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