This question already has an answer here:
I have a Samsung Galaxy S5 that has a shattered screen. It doesn't unlock, but the phone works fine.
I purchased a new phone, and I want to transfer all my contents from the old phone to the new phone.
The problem is the phone is locked with a pattern, and I cannot accesses it as the screen is broken. Does anyone know how to access it?