Extracting files from a locked Android device can be a challenging task, but it is not impossible. There are several methods that you can use to extract data from a locked Android phone, such as using Android Debug Bridge (ADB) or a third-party tool like Dr.Fone.
ADB is a command-line tool that can be used to access an Android device's file system even when it is locked. However, using ADB requires technical knowledge and the device's USB debugging feature must be enabled beforehand.
On the other hand, third-party tools like Dr.Fone offer a more user-friendly approach to data extraction. These tools often require you to connect your locked Android phone to a computer and run a program that will scan the device for recoverable files. Some tools even claim to work on both rooted and non-rooted Android devices.
However, it is worth noting that extracting data from a locked Android device may not always be legal or ethical. It is essential to have a valid reason for accessing the data and obtain permission from the device's owner if possible.