If the device is still operational enough to access settings, backing up data is the first priority.

Before proceeding, keep in mind that a hard reset , including photos, apps, and contacts.

Method 1 — Hard Reset via Recovery Mode (recommended)