The app mentioned for this purpose is XSCamera. It can be used to record video while the phone screen is locked or turned off, depending on the device and the app’s settings.
However, anyone considering using such an app should be careful about privacy and the law. A recording should only be made for a legitimate purpose, such as preserving evidence of an incident, and it should not be shared, published, or used to embarrass, threaten, or harm another person.
Before making a recording, it is also important to consider the laws that apply to recording people in your location. The fact that a recording may be useful as evidence does not automatically make every method of obtaining it lawful.
If the recording is needed as evidence, keep the original video safely stored and avoid editing it, as the original file may be important when establishing what was actually recorded.
Ignorance of the law is no excuse, so make sure you understand the applicable rules before using any recording application.

