Flashlight (torch)
Turns the camera LED on as a flashlight.
In one line
Can turn the flashlight on while the app is open, with no permission
Turns the camera LED on as a flashlight.
No personal data is read. Neither platform asks for permission, so any app can switch the light on while in the foreground.
What it can and can't do
What the user does: You tap the flashlight button
It can
- Switch the camera light on and off
- Set the brightness level (Android 13 and later, iPhone)
- Do it with no prompt
It cannot
- See any of your personal data
- Keep the light on after the app goes to the background on iPhone
- Take photos or video, which needs the camera prompt
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 6.0 (API 23) | iOS 4.0 |
| Permission or entitlement | None (CAMERA is not needed for setTorchMode) | Not listed |
| Protection level | none | none |
| How access is granted | none | none |
| What the user sees | None | None; torch control does not trigger the camera prompt |
| How long it lasts | Torch turns off when the app leaves the foreground or another app takes the camera | n/a |
| How to take it back | Quick settings tile | Control Center |
| Store policy | None listed | None listed |
| API | CameraManager.setTorchMode, TorchStrengthLevel (Android 13) | AVCaptureDevice.torchMode, setTorchModeOn(level:) |
| Notes | Android 13 adds brightness levels. | Needs lockForConfiguration; the torch turns off when the capture session ends or the app backgrounds. |
Data you get
What comes back: Torch state
Shape: boolean
How often: on call
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
level | integer | step | 1 to maxLevel | device dependent |
Technical limits
- Camera light indicator rules do not cover the torch
The story
What it is
Turns the camera light on so the phone works as a flashlight.
For you
You swipe the control centre or tap a button and the light comes on. There is no pop up, since the light reads nothing about you. The light can also come on when an app scans a code in the dark.
For makers
Apps use the light to help the camera work in low light, for scanners and for signals. It is also a classic pitch for tiny utility apps. It needs no permission, so it has been used as a cover for apps that ask for much more.
Where you see it
| Type | Example | Apps |
|---|---|---|
| utilities | A flashlight app turns on the LED with one tap. | None named |
| payments | A barcode scanner flips on the torch in a dark shop so a code can be read. | Google Lens |
| creative | A video app lights a face while you record in a dark room. | TikTok |
| live | A concert app turns the phone into a light show that blinks with the music. | None named |
| security | A safety app flashes the torch to signal for help. | None named |
| accessibility | A deaf user gets a flash alert when the phone rings. | None named |
| games | A treasure hunt game asks you to shine the light on a clue. | None named |
Risks
- Cover for shady apps
- Battery drain
- None for data
Android and iPhone in short
- Android: Android 13 adds brightness levels for the torch.
- iPhone: The torch turns off when the app moves to the background or the camera stops.
Good uses and abuse
Legitimate uses
- Scanner lighting
- Flashlight apps
Known abuse
- Flashlight apps over-collecting permissions
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 0 | Rough identifying entropy, when known |
History
- 2015-10, Android 6.0 (API 23): setTorchMode with no camera permission
- 2022-08, Android 13 (API 33): Torch strength control
Related capabilities
Same idea on the web
- Camera (video capture). Can see and record live video from your camera while the tab is open
Sources
How well checked: Based on official documentation.