add mtp responder to TWRP.

Big thanks to Dees_Troy for helping with the implementation.

Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
This commit is contained in:
bigbiff bigbiff
2014-09-02 21:44:49 -04:00
parent 3c4ac3bc32
commit c7eee6fef0
59 changed files with 9663 additions and 28 deletions
+8
View File
@@ -996,6 +996,14 @@ void DataManager::SetDefaultValues()
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