Skip to Content
Platform.Ontology

Ambient light sensor

Android reads lux with no prompt; iOS has no public ambient light API.

Gets silentlyLocation and motionMotionAndroid and iPhoneWhile you use it

In one line

Can measure room light on Android, but can't on iPhone

Android reads lux with no prompt; iOS has no public ambient light API.

Shows whether the person is indoors, outdoors or in the dark.

What it can and can't do

What the user does: Nothing. On Android it happens when the app uses auto brightness or a light meter feature

It can

  • Measure the light level around an Android phone, up to about 40000 lux
  • Adjust screen colors or brightness to match the room (Android)
  • Check the screen brightness setting on iPhone, which does not show the room

It cannot

  • Measure room light on iPhone; no public sensor exists
  • Learn the room from iPhone brightness, which only shows your setting
  • Ask you first on Android; no prompt is used

How it differs between platforms: Android shares the light sensor with no prompt. iPhone has no public ambient light sensor.

On Android and iPhone

AndroidiPhone
StatusSupportedNot supported
First versionAndroid 1.5 (API 3)Not available
Permission or entitlementNot listednone
Protection levelnonenot-exposed
How access is grantednonenot-exposed
What the user seesNot listedNot listed
How long it lastsNot listedNot listed
How to take it backNot listedNot listed
Store policyNone listedNone listed
APISensor.TYPE_LIGHTNo public ambient light API
NotesLux 0 to about 40000UIScreen.brightness is the only proxy, and it reflects the setting not the room

Data you get

What comes back: Illuminance
Shape: float
How often: On change

FieldTypeUnitRangePrecision
luxfloatlux0 to 40000depends on OEM

Technical limits

  • iOS has no equivalent

The story

What it is

An app can read how bright the light is around your phone.

For you

You never see it. Your screen brightness and some apps adapt to a dark room or bright sun. It tells apps whether you are indoors, outside or in bed.

For makers

Makers use it to switch to a dark screen or boost contrast in bright light. It also lets analytics guess your context. Researchers have also shown it can leak details about what is on a screen nearby.

Where you see it

TypeExampleApps
mediaA reader app turns to a warmer, darker page when the room gets dark.None named
fitnessA cycling app raises screen contrast when you ride in bright sun.None named
creativeA camera app picks a night mode when it senses low light.None named
gamesA game dims its menu when you play in the dark so it is easier on your eyes.None named
smart-homeA smart home app turns lights on when your phone sees that the room is dark.None named
analyticsA tracker uses light levels to guess if you are indoors, outdoors or in bed.None named

Risks

  • Reveals context
  • Weak fingerprint bit

Android and iPhone in short

  • Android: Android reads light in lux with no prompt.
  • iPhone: iPhone has no public light sensor for apps, though the system adjusts brightness itself.

What the platform says

Good uses and abuse

Legitimate uses

  • Adaptive UI

Known abuse

  • Context inference

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility2 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits1Rough identifying entropy, when known
  • Screen brightness. Can check your screen brightness with no prompt, and change it while the app is open

Same idea on the web

Sources

How well checked: Based on official documentation.

On this page