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:
- Open Settings โ Lock screen โ Flashlight gestures and turn off the option.
- Check the power button settings: Settings โ Buttons and gestures โ Double press the power button.
- Activate the Lock in your pocket function in the Settings โ Display โ Automatic Lock.
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 updates | The problem came after the MIUI update. | Reverse to the previous version or reset the settings. |
| The failure of com.android.systemui | The flashlight flashes, turns on for 1-2 seconds. | Clear the system cache in Settings โ Applications โ All applications โ System UI. |
| Error in availability settings | The 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:
- Install an antivirus (such as Dr.Web Light or Malwarebytes) and scan the system.
- Check the list of applications with administrator rights: Settings โ Passwords and security โ Application privileges โ Administrator rights.
- 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:
- Restart your phone in Safe Mode (hold the power button โ Safe Mode).
- Wait 10-15 minutes. If the flashlight doesn't turn on, it's the third-party app's fault.
- Remove the recently installed programs until the problem disappears.
How to remove a system application without root rights?
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 cause | Decision |
|---|---|---|
| The flashlight is turned on when shaking the phone | The accelerometer is defective. | Replacement of the sensor module |
| The flashlight is constantly on, not turning off. | Short circuit in the LED circuit | Maternity board repair |
| The flashlight is turned on when charging is connected | Problems with the power controller | Diagnostics 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:
- Go to Settings โ Special features โ Gestures of accessibility.
- Turn off all options related to flashlights or light signals.
- 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:
- Open Settings โ Notifications โ Flash at notifications.
- 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:
- Run your phone in Safe Mode (as described above) If the problem has gone away, it's the third-party app's fault.
- Check the application rights: Settings โ Apps โ Permissions โ Camera and Flashlight.
- 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:
- Update to the latest version of MIUI.
- Reset to factory settings (with loss of data).
How to update firmware:
- Go to Settings โ About the phone โ System update.
- Click on โUpdate Checkerโ and install the latest version.
- 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:
- Create a backup of your data (via Settings โ Additional โ Backup or Mi Cloud).
- Go to Settings โ Additional โ Backup and Reset โ Reset settings.
- 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.