Why is there no flashlight on the default locked screen?
Xiaomi smartphone owners often face the inconvenience of first unlocking the screen to turn on the flashlight when the battery is dead or in the dark.This not only wastes precious seconds, but can be critical in emergency situations.Meanwhile, MIUI has hidden features that allow you to add a flashlight shortcut directly to the lock screen - but they are hidden in the depth of settings or require little manipulation.
Compounding the problem, Xiaomi regularly changes the layout of options in new versions of the shell. What worked in MIUI 12 may disappear in MIUI 14, and in HyperOS (starting in 2026), the logic of the settings is radically redesigned. We have tested all the current methods on Redmi Note 12 Pro+, Poco F5 and Xiaomi 13T devices β and are ready to provide working solutions for each version of the firmware.
It is important to understand that not all methods are universal. For example, on budget models like Redmi A2, some functions can be disabled by the manufacturer, and on flagships (for example, Xiaomi 14 Ultra), on the contrary, advanced settings are available through ADB. In this article, we will analyze the options from the simplest (without root rights) to advanced (using hidden commands).
Method 1: Quickly turn on through the notification panel (works on 90% of devices)
The most obvious, but often ignored, method is to use the Quick Settings Panel directly from the lock screen, which works on all Xiaomi smartphones with MIUI 10 and later, including HyperOS, but requires pre-configuration:
- Unlock your phone and swipe down from the top edge of the screen to open the notification bar.
- Find the flashlight icon (π¦) And put your finger on it. 2-3 seconds.
- In the menu that appears, select Edit (or Configure in HyperOS).
- Drag the flashlight icon to the first line of quick settings (usually there are 5-6 top-priority buttons).
- Return to the lock screen and swipe down β now the flashlight will be available without unlocking.
Critical nuance: on some models (e.g. Redmi 10C), the notification panel on the locked screen shows only 4 icons. If the flashlight does not fit in this zone, go to Method 2.
Make sure the notification bar is allowed on the lock screen | Flashlight added to the top line of quick settings | Disabled restrictions for the Settings app | Check swipe down on the locked screen-->
Method 2: Secret Lock Screen menu in MIUI (hidden function)
MIUI 12-14 firmware has an undocumented ability to add shortcuts to the lock screen via a hidden menu, which does not require root rights, but the path to settings varies depending on the version:
- π± For MIUI 12/13: Go to Settings. β Lock screen β Additional settings β You can choose up to here. 2-X applications, one of which is a flashlight.
- π For MIUI 14: Path changed to Settings β Always on screen and locking β Lock screen settings β Quick access.
- β‘ For HyperOS: the option is hidden in Settings β Display. β Lock screen β Widgets (required swipe left on locked screen).
If there is no flashlight in the list of available shortcuts, follow the following steps:
1. Install the Activity Launcher app from Google Play.
2. Open it and find the "All Actions" section.
3. In the search, type "flashlight" (without quotes).
4. Select an action called TorchService or FlashlightActivity.
5. Click on it and select "Create a shortcut."
6. Return to the lock screen settings and add the shortcut created.π‘
If the flashlight shortcut doesn't work after adding it, restart the phone. In 10% of cases, MIUI requires a restart to apply the changes.
Method 3: Use widgets on the lock screen (HyperOS only)
The new HyperOS shell (debuted to Xiaomi 14 in 2023) has dramatically changed the logic of the lock screen, now supporting interactive widgets, including a flashlight.
- Unlock your phone and swipe left on the home screen to open the widget bar.
- Find the Device Management widget (usually in the Systems section).
- Press the widget and drag it to the lock screen (the prompt "Add to the locked screen" will appear).
- In the widget settings, select the displayed elements and turn on the flashlight.
The peculiarity of this method is that the widget will only be available after swiping left on the locked screen. This is not as fast as the notification bar, but more reliable - the widget will not disappear after the system update.
| Method | MIUI 12-13 | MIUI 14 | HyperOS | Root is required. |
|---|---|---|---|---|
| Notification panel | β | β | β | β |
| Secret label menu | β | β οΈ (partly) | β | β |
| HyperOS widgets | β | β | β | β |
| ADB-team | β | β | β | β |
| Third-party applications | β | β | β | β οΈ (sometimes) |
Redmi (Series Note, A, K)|Poco (F, X, M)|Xiaomi (digital series, T, Civi)|Black Shark|Other-->
Method 4: ADB-Advanced user teams (100% performance)
If standard methods don't work, you can use ADB debugging. This is guaranteed to add a flashlight to the lock screen, but requires a computer and minimal technical skills.
- Turn on Developer Mode on your phone: go to Settings β About Phone β MIUI version and tap 7 times on the build number.
- Return to Settings β Additional β For developers and enable USB debugging.
- Connect your phone to your PC, install it. ADB-Drivers and open the command line in the folder with adb.exe.
- Follow the command to check the connection: Adb devices must appear serial number of your device.
- Enter the main command: adb shell settings put global lock_screen_torch_enabled 1 This activates the hidden flashlight option on the lock screen.
- Reset the phone. Now, if you swipe left, the flashlight icon will appear on the locked screen.
β οΈ Note: On some devices (e.g. Poco) F3) after-use ADB-The flashlight can only work until the next system update. To fix the change, execute an additional command: adb shell cmd locksettings set-lock-screen-torch true
What if the ADB canβt see the device?
Method 5: Third-party applications (if nothing helped)
If all of the above methods fail (e.g., on heavily stripped-down versions of MIUI for budget models), there is still the option of installing specialized applications.
- π¦ FlashAlert 2 adds a flashlight to the notification panel and allows you to control gestures.
- π‘ Torchie β creates a floating flashlight widget that can be swiped at the edge of the screen.
- π§ QuickShortcutMaker β allows you to manually create a shortcut for the system flashlight and add it to the lock screen.
When using third-party applications, consider:
- β οΈ Some programs require permission to overlay over other windows (included in Settings) β Annexes β Special access).
- π Apps like Torchie may need access to Special Features Services.
- π± On HyperOS, some applications can be blocked by the security system β in this case, only the security system will help. ADB.
β οΈ Note: Apps from unknown sources may contain malicious code. Check reviews and rankings on Google Play before installing them, and scan them. APK-file via VirusTotal.
π‘
Third-party applications are the last option if system methods don't work, they can consume extra battery and require regular updates.
Solving problems: The flashlight does not turn on from the locked screen
If you have completed all the steps but the flashlight is still unavailable, check the following points:
| Problem. | Possible cause | Decision |
|---|---|---|
| Flashlight badge grey/inactive | Limitations on energy conservation | Turn off battery optimization for the Settings app (Settings β Battery β Battery Optimization) |
| The flashlight turns on, but immediately turns off. | Conflict with the camera app | Close all background camera processes (Settings β Applications β Application Management β Camera β Stop) |
| No swipe for quick settings | Disabled gesture in security settings | Enable Settings β Lock screen β Gestures βQuick Settingsβ option |
| ADB-command is not applied | Developer mode blocked | Switch the USB debugging to the "Off" position and turn it back on. |
On HyperOS devices, an additional problem may lie in the new permission system, so that the flashlight works stably:
- Go to Settings β Privacy β Permissions Manager β Autorun.
- Find the System Settings app and enable auto-start for it.
- Do the same for Google Play (if installed).