summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-02-24 00:40:00 +0100
committerMatt Mower <mowerm@gmail.com>2017-02-24 02:21:33 +0100
commite07f010963b247e21da3f1c0cfe023be2e1219fd (patch)
treefdfdbe679084cb9c2c77ade8ffea7672cca6f275 /twrp.cpp
parentlogd: add seclabel so that service runs in 7.1 tree builds (diff)
downloadandroid_bootable_recovery-e07f010963b247e21da3f1c0cfe023be2e1219fd.tar
android_bootable_recovery-e07f010963b247e21da3f1c0cfe023be2e1219fd.tar.gz
android_bootable_recovery-e07f010963b247e21da3f1c0cfe023be2e1219fd.tar.bz2
android_bootable_recovery-e07f010963b247e21da3f1c0cfe023be2e1219fd.tar.lz
android_bootable_recovery-e07f010963b247e21da3f1c0cfe023be2e1219fd.tar.xz
android_bootable_recovery-e07f010963b247e21da3f1c0cfe023be2e1219fd.tar.zst
android_bootable_recovery-e07f010963b247e21da3f1c0cfe023be2e1219fd.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 3d0a375a3..9ea6ba62e 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -308,7 +308,6 @@ int main(int argc, char **argv) {
property_get("mtp.crash_check", mtp_crash_check, "0");
if (strcmp(mtp_crash_check, "0") == 0) {
property_set("mtp.crash_check", "1");
- property_set("sys.usb.config", "adb"); // At first boot, should be adb-only
if (DataManager::GetIntValue("tw_mtp_enabled") == 1 && ((DataManager::GetIntValue(TW_IS_ENCRYPTED) != 0 && DataManager::GetIntValue(TW_IS_DECRYPTED) != 0) || DataManager::GetIntValue(TW_IS_ENCRYPTED) == 0)) {
LOGINFO("Enabling MTP during startup\n");
if (!PartitionManager.Enable_MTP())