[Android Q&A, Help & Troubleshooting] teer22:
Hello everyone.

I have searched and tried different things for hours in the end but nothing I found worked. Let me describe the problem a little closer.

My Xperia Z3 took a hard hit. Screen is shattered, unresponsive, black (nothing can be seen). I can't access the internal memory because after connecting the phone to the computer a pop-up asks to select the USB mode (MTP, Charge Only, etc.).

I am able to get past the lock screen by connecting a keyboard and typing in the password.

USB Debugging is enabled, however I cannot use it with ADB because upon connecting I must select the appropriate mode (same problem as above when trying to access internal memory from windows file level).

I thought about connecting the phone to a TV and using a mouse to set the default USB connection mode to MTP, that way I could just plug it in and back up the data using SONY PC Companion but the only device I found that would support a HDMI cable and a USB device (like a PC mouse) is a 5in1 device that is built for Samsung (it has an 11 pin USB micro connector that plugs into the phone).

I tried mirroring the screen on PC using different software but in the end all of them require USB debugging (or selecting the appropriate mode after connecting the phone to the pc) so that didn't work.

A possible solution I thought of is to make a DIY 11 pin to 5 pin micro USB converter (or just cut off the 11 pin plug and wire the cables to a 5 pin one which fits the Xperia Z3 port). The problem here is I can't find the 11 pin to 5 pin converter, however there is a converter that does a 5 -> 11 pin conversion. Which makes me think it must be possible to do it the other way around but so far after quite a long time of searching I failed to find a wiring diagram that would help me do it manually.

My questions:

1. Does anyone know how to manually wire an 11 pin to 5 pin micro USB converter?

2. Is it possible to write a script/executable that I could place on an external SD card, which would auto-execute upon inserting and edit phone config files to change default USB mode to MTP or USB debugging?

3. Does anyone know whether it's possible to use Kali linux to access internal memory via USB cable without selecting any mode after connection? (simply speaking how do I hack into it)

4. Is it possible to write a script/executable that would copy files from certain locations on the internal memory to a location in the external memory? (like photos, videos, etc.)

The 4 questions relate to the theoretical solutions that I thought of to solve my problem but I failed to find information on how to actually do it (if possible at all). I hope someone here will be able to point me in the right direction or give some suggestions.

One other thing I've read somewhere is that someone had reset the phones lock (as in screen lock) by disconnecting some pins/connectors on the phones motherboard for a few seconds which apparently set the phone in some sort of default mode without affecting the memory. Perhaps this would be something worth a try or thinking about if possible in this phone.

I welcome any solutions and ideas. I have some skills in programming and I'm not afraid to take things apart if it comes to that so any solution from easy ones to complicated are welcome.

Some info about the device:

Sony Xperia Z3 - D6603

Android Version: 5.0.1+ (definitely 5+, not 100% sure of the exact version)

If you require more information please ask.

Thanks a lot for taking the time to look at this post ;)

T.