How can I unlock the screen lock in Android Lollipop
without losing data?
I have forgotten the pattern.
method 1Try using adb pull with the android SDK In recovery mode.
method 2If you have a phone without an SD card wiping data will only remove the apps otherwise the data will be fine. This works even in some phones without SD card.
method 3 easiestAfter several tries it will give you option of forgot password. Which will ask you Google account details. Fill it and you are good to go.
locked-out
tag to your question. Please follow up to its tag-wiki for first-aid. Hint: Answers on Can not unlock my Android device as have no internet connection? cover pretty much any known method concerning your issue.