Proximity sensor
Android reads the distance; iOS gives only a near or far boolean.
In one line
Can tell if something is close to the screen, such as your ear
Android reads the distance; iOS gives only a near or far boolean.
Shows the phone is at the ear or in a pocket. Low value as an ID.
What it can and can't do
What the user does: Nothing. It happens when you hold the phone to your ear on a call or voice message
It can
- Check if the phone is near your face
- Turn off the screen during calls
- On some Android phones, get a distance in centimeters
It cannot
- Get a distance on iPhone; only near or far
- See what is near the phone
- Follow you around
How it differs between platforms: iPhone gives only near or far. Android is often near or far but some phones give a distance.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 1.5 (API 3) | iOS 3.0 |
| Permission or entitlement | Not listed | none |
| Protection level | none | none |
| How access is granted | none | none |
| What the user sees | Not listed | Not listed |
| How long it lasts | Not listed | Not listed |
| How to take it back | Not listed | Not listed |
| Store policy | None listed | None listed |
| API | Sensor.TYPE_PROXIMITY | Boolean only |
| Notes | Often binary (0 or 5 cm), some devices return distance | None |
Data you get
What comes back: Near or far
Shape: boolean
How often: On change
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
near | boolean | None | true, false | 1 bit |
Technical limits
- iOS has no distance
The story
What it is
An app can sense when something, like your face, is close to the top of the phone.
For you
You notice it only during calls: when the phone touches your ear, the screen goes dark so your cheek cannot hang up. It can also tell that the phone is in your pocket.
For makers
Makers use it to switch off the screen during voice calls and voice notes. It has little value for tracking, except to guess that a phone is in a pocket or bag.
Where you see it
| Type | Example | Apps |
|---|---|---|
| messaging | A chat app turns the screen off when you hold the phone to your ear to hear a voice note. | WhatsApp, Telegram |
| video | A video call app turns the screen off during an audio only call. | Zoom, FaceTime |
| accessibility | A hands free app uses a wave over the sensor to answer or silence a call. | None named |
| games | A gesture game lets you wave a hand over the phone to trigger an action. | None named |
| security | A phone tracker app guesses that the phone is in a pocket to decide whether to ring louder. | None named |
| health | A sleep tracker pauses buzzing when the phone is covered under a pillow. | None named |
Risks
- Low privacy risk
- Pocket detection
Android and iPhone in short
- Android: Android apps can read a distance value, though many phones only give near or far.
- iPhone: iPhone apps only get a near or far yes or no, and must turn it on first.
What the platform says
- Apple: Proximity sensor. Apple lets apps know when the phone is near your face so the screen can turn off during calls.
- Google: Position sensors. Android apps can read how close an object is to the screen to run call features.
Good uses and abuse
Legitimate uses
- Screen off during calls
Known abuse
- Little
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 1 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 1 | Rough identifying entropy, when known |
Sources
How well checked: Based on official documentation.