A camera app that works on your own phone has told you very little. When the signal comes from a fingertip lit by the flash, small hardware differences decide whether the app works at all. This post covers what I learned testing one app on three family phones, which Android flash features I used, and a routine you can reuse for any camera app. The app is a wellness tool that is not a medical device, so nothing here is about diagnosis.

Why the flash level matters

In a finger-on-camera app, the flash is the light source. The camera sees light that has passed through the fingertip, and the tiny changes in that light are the signal. If the light is too dim, the picture is dark and noisy. If it is too bright, the image saturates, the values hit the top of the range and the small changes disappear.

There is also a human side. In my prototype tests, full flash power made the finger uncomfortable, and even a low level warms the finger if it rests on the flash for a long time. So the right answer is the lowest level that still gives a usable image, not the brightest one.

Torch strength on newer Android

Older Android versions give you torch on or off. Newer versions let an app choose a level. In Pulselings the code does this through Camera2 inside CameraX: it reads the maximum level from the camera characteristics key FLASH_INFO_STRENGTH_MAXIMUM_LEVEL and sets the level with the capture request key FLASH_STRENGTH_LEVEL. Both calls are guarded by a check for Android API 35 or higher, and wrapped so that a failure just leaves the torch at its default.

Android also has a CameraManager call for turning the torch on at a given strength, and a default-level characteristic. I did not use either in this app, and I am not certain which version each one starts at, so check the official documentation before relying on them. Two lessons apply anyway. First, read the maximum level instead of assuming one: if it is 1 or missing, there is nothing to adjust. Second, treat the whole feature as optional, because many phones will not offer it.

How the app uses the level

The app starts at the lowest level, so the finger is not hit with full power on the first frame. Every second or so it looks at the average red value of the picture. If red is above 235 and the level is above the minimum, it steps down. If a finger is detected and red is below 90, it steps up. This keeps the image inside a usable range without the user doing anything.

On a phone without strength control, none of this is possible. The torch simply runs at full power, so the app relies on a short measurement, an early finish when the signal is clean, and a hint to lift the finger if it gets warm. That is a real behavioural difference between phones, and it is the reason the test list below includes an older Android version on purpose.

Choosing the camera, and not being clever

Phones have several rear lenses, and the finger covers only one of them, usually the one next to the flash. My first idea was to try each camera and keep the one that looked like it was covered by a finger. It did not work well: the upper lens stayed dark, the app read that as no finger and kept jumping between cameras. The automatic search is switched off. The app binds the default back camera and tells the user what it sees.

Finger detection is a simple colour rule on the middle of the picture: red above 45, green below 70 percent of red, blue below 85 percent of red. If the picture is very dark, the hint says so. If green is too high compared with red, the hint says the finger does not cover the lens fully. Plain rules like these are easy to log and easy to reason about across phones.

Flash position is the real difference

The most useful finding was not about software. Where the flash sits relative to the lens changes how the user must hold the finger. When the flash is close to the lens, laying the finger on its side across both gives a fast, high-quality signal. On the S24 Ultra, the flash is to the right of the lens and not very close, so the finger has to lie sideways and be moved toward the flash. Explaining this clearly is the hardest part of the interface.

The notes also record a limit: the flash position cannot be read from the camera API. The lens position can be read, which is a possible basis for a per-model diagram, but for the flash the app would have to ask the user or run a short calibration. I have not built that yet, so I do not claim it.

What differed between the three phones

  • Samsung Note 10+ on Android 12: no torch strength control, so the torch runs at full power. The app warns and keeps the measurement short.
  • Samsung S24 Ultra: the flash sits to the right of the lens, not right next to it. The finger position needs more guidance. An early artefact from this phone, a steady but wrong rhythm, led to the stricter checks described in the earlier post on the signal.
  • Family S25 FE on Android 17: the frame rate was about 26 to 28 per second, slow drift and exposure swings produced a false low rhythm with the old filter, and the signal settled late, after roughly 40 to 60 seconds. A better band-pass filter fixed the false rhythm.

I did not test other brands such as Pixel or Xiaomi yet. The thresholds were calibrated on these three phones only, and the notes list wider testing as open work. Any claim about other phones would be a guess.

A test routine for any camera app

Pick phones that differ on purpose: one old Android version, one new, one with the flash far from the lens, one with a low frame rate if you can find it. Write the list before you start. For each phone, record a header line with model, Android API level, camera id, focal length and the torch level range. Pulselings writes exactly this kind of line at the top of each debug recording.

Then repeat the same scenario several times per phone, with the same person, same room and same finger. Log the raw values, not only the final result, so you can replay them later in a unit test. Compare phones on stable things: frame rate, how long until the signal settles, how often the app says not clear, and whether saturation or darkness warnings appear.

What to mark as could not verify

Write down every claim you cannot reproduce. If a feature exists in the documentation but you have no phone that supports it, note that it is untested. If a result happened once, note it as one observation. If you have no reference device in the room, do not publish accuracy numbers at all, and do not imply medical meaning for a wellness app.

For Pulselings, the honest list is short and clear: three phones, one person at a time, no other brands, no accuracy claims, and no medical use. If you want to see how these checks turned into an everyday app, Pulselings is the small free wellness tool I built around them.

FAQ

Does every Android phone let an app set the flash brightness?

No. Control of torch strength exists only on newer Android versions and only on phones whose camera reports a maximum level. Read it from the camera characteristics and treat the feature as optional.

Why is a low flash level often better for a finger signal?

Too much light saturates the image and hides the small changes, and it can make the finger uncomfortable. The lowest level that gives a usable picture is the better target.

How many phones do I need to test a camera app?

At least three that differ on purpose: an older Android version, a recent one, and one with a different flash and lens layout. More is better, and untested brands should be listed as unverified.

Can the app find which lens my finger is on?

Not reliably in my tests. Trying several lenses automatically confused the app, so it uses the default back camera and guides the user to cover it.

Is this app a medical device?

No. Pulselings is a wellness app, not a medical device, and it does not diagnose anything.

If you want to see this in action, Pulselings is free on Google Play and needs no account. More notes like this one live on my site.