My phones touchscreen has been gradually failing for a few months, so before it dies completely I rooted it and installed Webkey so I can control it via a browser. Of course that requires the wifi to be on, so what I want to do is plug the phone into my computer and turn on the wifi on from the adb shell (which I've done, and it works fine). The thing is, adb doesn't see my phone unless I manually set the connection mode to MTP, and I won't be able to do that when the touchscreen goes completely unresponsive.

So, how would I set my phone to automatically use MTP when I connect it via USB?

It's an Alcatel OneTouch 993, running Android 4.0.4.

  • Why not just leave the Wi-Fi turned on? – Dan Hulme Jul 30 '14 at 7:38
  • To save on the battery. – JamesNZ Jul 30 '14 at 7:42
  • What about other ways to trigger WiFi? I think e.g. of using Tasker to toggle WiFi. Possible toggles (selection): Camera-button, NFC, Bluetooth. Would that be acceptable? Apart from that: Can't the connection-mode be made permanent? Most devices support that ("always use X"). – Izzy Jul 30 '14 at 9:19
  • 2
    Thanks, problem solved! I used MacroDroid to turn on the wifi when I shake the phone, which is even easier than using adb :) – JamesNZ Jul 31 '14 at 9:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.