[Moto X4 Questions & Answers] Iconium_:
I have a Moto x4 with a broken screen (only top left corner visible) and broken touch screen with thousands of ghost touches. But luckily I can unplug the display cable but it turns off display along with touch. So I cannot do that.

I actually want to enable USB debugging and verify my PC.

I have bootloader unlocked but I cannot do any TWRP adb tricks to verify my PC or enable debugging in the first place.

So can anyone help by sending keyboard shortcuts to do the first setup and enable USB debugging please? (Only keyboard buttons)

HOW TO ​

Here's what i did to do the first setup and enable / verify adb on my phone.

You need:

1. A PC / Laptop

2. USB Data Cable

3. Scrcpy running. (Get from github)

It turns out that scrcpy has otg mode that does not require you to have ADB enabled on your phone. This can be very helpful if you have a broken screen and want to enable adb to recover data from your phone.

1. Your screen (touchscreen) should be okay or should not perform any type of false (ghost) touches.

2. If your digitizer is broken and does a lot of ghost touches, please try to unplug the display from your phone!!!

3. Connect your phone to pc (first unplug display if required)

4. Install Universal ADB drivers (No need for linux users)

5. Install drivers for your device (such as moto usb drivers) if scrcpy doesn't detect your phone. (No need for linux users)

6. Install scrcpy and run scrpy. (for linux users, press CTRL ALT T and go to the directory where scrcpy is installed. If you used apt to install it, it doesn't matter where you are.)

7. Type scrcpy --otg This will enable otg emulation. Click on the window to control your phone from PC / Laptop's mouse / keyboard

8. Press and hold Both Volume keys for 3 - 5 seconds until TALK BACK (narrator) turns on.

9. Use TAB and ARROW KEYS to navigate to finish setup (Skip this if your phone isn't in the setup menu.) Skip everything that can be.

10. Your phone might be locked. Use the mouse to blindly swipe up!

11. Once at the home page (it will say) Swipe with mouse once again to open the apps drawer (or press the button at centre of your phone's screen)

12. press TAB to navigate b/w apps. Keep doing so until it says "SETTINGS"

13. once so, press enter. This will open settings.

14. Once in there, press TAB once and press arrow down key once and then use TAB to navigate.

15. Keep pressing TAB until you come to "System" press Enter

16. Press Enter on About phone

17. Press tab until "ANDROID VER"

18. Press DOWN ARROW

19. Keep doing so until you go to "BUILD NUMBER"

20. Press Enter key more than 8 times to enable DEV OPTIONS

21. Right click to go back.

22. Press tab until you go to "ADVANCED MOTO..."

23. Press ENTER

24. Keep pressing TAB until you hear "DEV OPTIONS"

25. Press ENTER

26. Keep pressing TAB until you hear "USB DEBUG"

27. Turn it on by pressing enter and using TAB key to press enter once it says "OK" stuff

28. Unplug device.

29. Plug it in and run scrcpy in otg mode once again

30. If promted abt usb debug. (it may not, follow my steps. skip if it does)

31. on another terminal window, type

scrcpy

32. You might be promted with "THIS PC's RSA STUFF"

33. Press TAB until you hear "ALWAYS ALLOW" or something similar, if it says UNCHECKED , press enter until it says "CHECKED" or something.

34. Press TAB until it says "OK" and press ENTER.

# GOOD JOB! ADB IS NOW ENABLED AND YOUR PC IS VERIFIED