twrp.cpp: fix selinux context of backups and logs with settings in /data/recovery
Change-Id: I8c0f5a7f252d550a805115799853a72b15eb91c0
(cherry picked from commit dbed985d1ccb9412fd19171a3ecfb621bb9d0a6b)
diff --git a/twrp.cpp b/twrp.cpp
index 6566e04..8ed0a8a 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -98,7 +98,7 @@
}
} else if (datamedia) {
PartitionManager.Update_System_Details();
- if (tw_get_default_metadata(DataManager::GetSettingsStoragePath().c_str()) != 0) {
+ if (tw_get_default_metadata(DataManager::GetCurrentStoragePath().c_str()) != 0) {
LOGINFO("Failed to get default contexts and file mode for storage files.\n");
} else {
LOGINFO("Got default contexts and file mode for storage files.\n");