add mtp responder to TWRP.
Big thanks to Dees_Troy for helping with the implementation.
Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
diff --git a/data.cpp b/data.cpp
index afa676d..7b85d2c 100644
--- a/data.cpp
+++ b/data.cpp
@@ -996,6 +996,14 @@
LOGINFO("TW_EXCLUDE_ENCRYPTED_BACKUPS := true\n");
mValues.insert(make_pair("tw_include_encrypted_backup", make_pair("0", 0)));
#endif
+#ifdef TW_HAS_MTP
+ mConstValues.insert(make_pair("tw_has_mtp", "1"));
+ mValues.insert(make_pair("tw_mtp_enabled", make_pair("1", 1)));
+#else
+ LOGINFO("TW_EXCLUDE_MTP := true\n");
+ mConstValues.insert(make_pair("tw_has_mtp", "0"));
+ mConstValues.insert(make_pair("tw_mtp_enabled", "0"));
+#endif
}
// Magic Values