Why Xiaomi Redmi 9 spontaneously turns on the flashlight โ€“ and how to fix it

Have you noticed that your Xiaomi Redmi 9 flashlight turns on without you? It's not just random โ€” there can be harmless causes behind this behavior (such as accidentally pressing buttons in your pocket) and serious malfunctions in your smartphone. In this article, we will analyze all the possible reasons why the flashlight activates on its own, and give step-by-step instructions for fixing them.

Redmi 9 features a hardware and software architecture where the flashlight is handled by both a physical button (if you have one in your modification) and MIUI system services. Sometimes the problem lies in availability settings, sometimes in application conflict, and in rare cases even a hardware defect is to blame.

1. Accidental taps: why the flashlight turns on in your pocket

The most common reason is the inadvertent activation of the flashlight through the lock button or gestures. On the Redmi 9 (as on most Xiaomi smartphones), the flashlight can be turned on:

  • ๐Ÿ”˜ Double press the Power button (if the function is activated in the settings).
  • ๐Ÿ‘† Gesture up the screen turned off (if flashlight gesture option is enabled).
  • ๐Ÿ“ฑ Through the Quick Settings Panel (swipe down from the top edge of the screen).

If the smartphone is in your pocket or bag, any pressure on the screen or buttons can trigger a flashlight, especially when:

  • ๐Ÿ‘– Wearing the phone in tight jeans (power button pressed against the hip).
  • ๐Ÿ‘œ Storage with keys or other solid objects.
  • ๐Ÿƒ Active movements (running, walking โ€“ vibration can work as a gesture).

โš ๏ธ Warning: If you use a magnetic lock case, it can simulate the pressing of buttons. Try removing the cover for a day and see if the problem will recur.

To exclude accidental inclusions:

  1. Open Settings โ†’ Lock screen โ†’ Flashlight gestures and turn off the option.
  2. Check the power button settings: Settings โ†’ Buttons and gestures โ†’ Double press the power button.
  3. Activate the Lock in your pocket function in the Settings โ†’ Display โ†’ Automatic Lock.
๐Ÿ“Š How often do you spontaneously turn on your flashlight?
Once a day.
Several times a week
Rarely, but accurately.
Never (just curious)

MIUI malfunctions: software causes of the problem

If the flashlight turns on even when the phone is on the table, the software is to blame. There are several system processes in MIUI (Xiaomi firmware) that control the flashlight, and these can cause spontaneous activation when it fails.

Reason.Signs.How to eliminate
Conflict of updatesThe problem came after the MIUI update.Reverse to the previous version or reset the settings.
The failure of com.android.systemuiThe flashlight flashes, turns on for 1-2 seconds.Clear the system cache in Settings โ†’ Applications โ†’ All applications โ†’ System UI.
Error in availability settingsThe flashlight is turned on when you press the screen.Disable Settings โ†’ Special. features โ†’ Gestures of accessibility.

One of the most insidious bugs is looping the process android.hardware.light, which controls LEDs. If the flashlight is turned on and off cyclically (for example, every 5 seconds), this is almost certainly a software glitch.

Check the update log in Settings โ†’ About Phone โ†’ System Update

Clear the app cache in Settings โ†’ Memory โ†’ Cleanup

Restart your phone in Safe Mode (hold the power button โ†’ Safe Mode)

Reset the settings to factory (pre-make a backup!)-->

Critical information: If the flashlight is turned on after upgrading MIUI to version 12.5.3.0 or 13.0.1.0, the problem may be due to an error in the kernel of the system, in which case the only solution is to roll back to the previous firmware via Fastboot.

3. Viruses and malicious applications: hidden threats

An unlikely but possible scenario is malware that gains access to the phone's hardware features, including a flashlight, often disguised as:

  • ๐Ÿ“ฑ "Battery Optimizers (e.g. Battery Saver Pro).
  • ๐Ÿ”ฆ "Flashlight enhancers" (e.g. Super Flashlight) HD).
  • ๐ŸŽฎ Playing games (especially if you have been playing games) APK unverified).

How to check your phone for viruses:

  1. Install an antivirus (such as Dr.Web Light or Malwarebytes) and scan the system.
  2. Check the list of applications with administrator rights: Settings โ†’ Passwords and security โ†’ Application privileges โ†’ Administrator rights.
  3. Sort apps by installation date: Settings โ†’ Apps โ†’ All apps โ†’ Sort โ†’ By installation date. Remove suspicious ones.

โš ๏ธ Attention: Some viruses block deletion through standard settings, in which case only resetting to factory settings or flashing through Fastboot will help.

If you suspect a particular app but are not sure, try this test:

  1. Restart your phone in Safe Mode (hold the power button โ†’ Safe Mode).
  2. Wait 10-15 minutes. If the flashlight doesn't turn on, it's the third-party app's fault.
  3. Remove the recently installed programs until the problem disappears.
How to remove a system application without root rights?
To remove pre-installed applications (such as Mi Video or Mi Browser) without superuser rights, you can use the ADB-Connect the phone to the PC, turn on the debugging. USB In the developer settings and execute the command: adb shell pm uninstall -k --user 0 com.xiaomi.name.of.app List of system application packages can be found on the forums 4PDA or XDA Developers.

Hardware malfunctions: when the "iron" is to blame

If the software didn't work, the problem could be the hardware of the phone. On Redmi 9, the flashlight responds:

  • ๐Ÿ”‹ Power controller (manages the supply of voltage to the LED).
  • ๐Ÿ“ถ Gyroscope/accelerometer (may falsely trigger vibration).
  • ๐Ÿ”Œ Power button (sticking or oxidizing contacts).
  • ๐Ÿ’ก LED itself (short circuit in the circuit).

How to diagnose a hardware malfunction:

Symptoms.Probable causeDecision
The flashlight is turned on when shaking the phoneThe accelerometer is defective.Replacement of the sensor module
The flashlight is constantly on, not turning off.Short circuit in the LED circuitMaternity board repair
The flashlight is turned on when charging is connectedProblems with the power controllerDiagnostics at the service center

The most reliable way to confirm a hardware malfunction is to run the phone with clean firmware through the Fastboot, and if the problem persists even after the MIUI is completely reinstalled, the hardware is to blame.

  • ๐Ÿ”ง Contact the Xiaomi service center (if the phone is guaranteed).
  • ๐Ÿ› ๏ธ Disassemble your phone and check the flashlight contacts (only if you have experience in electronics repair!).
  • ๐Ÿ“ฆ If repairs are not feasible, consider replacing your phone (Redmi 9 is a budget-friendly option, and repairs can cost half its price).

๐Ÿ’ก

Before visiting the service center, make a full data backup via Settings โ†’ Additional โ†’ Backup and Reset โ†’ Local Backup. This will save your contacts, photos and application settings.

5.Accessibility settings: hidden flashlight triggers

There's a little-known feature in MIUI called accessibility gestures that can accidentally activate a flashlight.

  • ๐Ÿ‘† Triple tap on the screen.
  • ๐Ÿ”„ Shaking the phone.
  • ๐Ÿ–๏ธ Holding two fingers on the screen.

To check and disable these settings:

  1. Go to Settings โ†’ Special features โ†’ Gestures of accessibility.
  2. Turn off all options related to flashlights or light signals.
  3. Check Settings โ†’ Special Options โ†’ Event Notifications โ€“ sometimes the flashlight flashes when incoming calls or messages.

Another possible reason is the Notification Flash mode, which, if activated, will flash every time you call or text, to turn off:

  1. Open Settings โ†’ Notifications โ†’ Flash at notifications.
  2. Turn off the option or set exceptions for specific applications.

๐Ÿ’ก

If the flashlight only turns on when certain actions are taken (such as unlocking or while calling), the problem is almost certainly with accessibility settings or notifications.

6. Conflict with third-party apps: who is to blame?

Some applications can intercept flashlight control via the Android API, most commonly:

  • ๐Ÿ“ธ Photography applications (e.g. Google Camera or Open Camera).
  • ๐Ÿ”ฆ Alternative flashlights (e.g. Tiny Flashlight).
  • ๐ŸŽต Music visualization applications (for example, Music Visualizer).
  • ๐Ÿ“ก Device search applications (e.g. Find My Device).

How to identify the culprit:

  1. Run your phone in Safe Mode (as described above) If the problem has gone away, it's the third-party app's fault.
  2. Check the application rights: Settings โ†’ Apps โ†’ Permissions โ†’ Camera and Flashlight.
  3. Remove newly installed programs one by one, checking after each deletion.

Especially often conflicts arise with applications that request permission android.permission.CAMERA or android.permission.FLASHLIGHT. For example, instant messengers like Viber or WhatsApp sometimes use a flashlight to scan. QR-background code.

โš ๏ธ Note: If you use automation applications (such as MacroDroid or Tasker), check their scripts, and it may have a flashlight on automatically under certain conditions (such as low battery power).

7. Update firmware and reset settings: extreme measures

If all previous methods fail, two radical solutions remain:

  1. Update to the latest version of MIUI.
  2. Reset to factory settings (with loss of data).

How to update firmware:

  1. Go to Settings โ†’ About the phone โ†’ System update.
  2. Click on โ€œUpdate Checkerโ€ and install the latest version.
  3. If the update does not come, download the firmware from the official Xiaomi website and install it manually through Settings โ†’ About the phone โ†’ System Update โ†’ Three points โ†’ Select a firmware file.

How to make a reset to factory settings:

  1. Create a backup of your data (via Settings โ†’ Additional โ†’ Backup or Mi Cloud).
  2. Go to Settings โ†’ Additional โ†’ Backup and Reset โ†’ Reset settings.
  3. Select โ€œErase all dataโ€ and confirm the action.

If the reset doesn't work, you just have to flash it over the Fastboot, which is a complicated procedure that requires:

  • ๐Ÿ–ฅ๏ธ Computer with drivers installed ADB and Fastboot.
  • ๐Ÿ“ฅ Official firmware for Redmi 9 (model) M2004J19C or M2004J19G).
  • ๐Ÿ”ง Ability to work with the command line.
Instructions for firmware through Fastboot
1. Download the firmware from the Xiaomi Firmware website. 2. Unpack the archive and place the file flash_all.bat Fastboot folder. 3. Connect your phone to your PC in Fastboot mode (hold power). + Loudness down). 4. Launch it. flash_all.bat and wait for the process to be completed. โš ๏ธ Interrupting firmware can lead to the โ€œbrickingโ€ of the phone!

FAQ: Frequent questions about the flashlight on Redmi 9

Can the flashlight itself turn on because of the low battery charge?
No, Redmi 9 doesn't have the ability to automatically turn on the flashlight when it's discharged, but some third-party applications (like Battery Alert) can use the flashlight to signal low charge.
The flashlight only turns on at night.
You probably have night notifications or Do Not Disturb mode activated with flashlight exceptions. Check: Settings โ†’ Notifications โ†’ Do Not Disturb. Settings โ†’ Lock screen โ†’ Night notifications. Also, the reason may be automation via Google Assistant or Mi AI.
After the phone fell, the flashlight started turning on itself.
Probably, yes. The fall could have damaged: Power button (contact sticking); accelerometer (false motion triggers); flashlight power circuit (short circuit); we recommend that you contact the service center for diagnostics.
Can I turn off the flashlight completely?
Yes, but it would require root rights or modifications to system files. Without root, you could only: Turn off flashlight gestures in settings; remove flashlight shortcut from notification panel; use applications like MacroDroid to block flashlights from turning on; and shutting down completely can cause camera failures (the flashlight is used as a flash).
The flashlight flashes at a certain frequency. What is it?
This can be: SOS (if the corresponding function is activated in the security settings); Missed Calls/Messages Notification (check Settings โ†’ Notifications โ†’ Flash at Notifications); LED controller failure (requires repair); Try restarting the phone - if the blinking stops, the problem was software.