Sample Header Ad - 728x90

Change USB connection mode using ADB only (broken screen)

3 votes
1 answer
8753 views
I am trying to use Vysor to control my Moto G5 which has a broken screen (completely black). It appears to be working otherwise (rings when called etc). However, I cannot connect to my PC using USB cable when the phone is on, because I cannot change from "Charging only" to MTP or PTP because I cannot see it on the screen. I can connect to ADB via recovery (stock and un-rooted) but all "adb shell" commands fail (error:closed) which I assume is due to not being rooted. I am trying to change the default USB connection mode to PTP rather than "Charging only" so I can use Vysor when the phone is booted normally, not in recovery. Has anyone got any ideas? I either need a way to made "adb shell" commands work (to follow the below link), or another way to change the USB default or another bright idea! https://android.stackexchange.com/questions/120026/how-do-i-change-from-ptp-to-mtp-mode-cannot-find-options-in-settings
Asked by Will Coley (31 rep)
Jul 10, 2018, 12:18 PM
Last activity: Nov 12, 2024, 01:53 AM