XGSM Iași — Service & Piese GSM

Test your phone

Testing cameras and sensors: proximity, compass, GPS

Cameras and sensors can be tested at home in ten minutes, with nothing to install and nothing to change: take photos at every zoom level, hold the phone to your ear during a call and step outside with a map open. And if something fails, below you can see what else to check yourself and what is clearly a job for a repair shop.
Anyone can do it10 minAndroidSamsungXiaomiHuaweiMotorolaGoogle PixelOnePlusOppoiPhoneChecked: November 17, 2026

Short version

  • Cameras: take a photo at every zoom level (0.5x, 1x, telephoto), near and far, then a video with sound — each level uses a different lens.
  • Proximity: during a call, hold the phone to your ear — the screen must go dark and light back up as you move it away.
  • Light: with auto-brightness on, shine a torch at the sensor at the top — the screen brightens on its own.
  • Compass and GPS: open Google Maps outside — a blue dot with a narrow beam and a small circle means all is well; for a wide beam, move the phone in a figure 8.
  • A sensor or camera dead after a screen replacement is usually a repair-shop matter — see the dedicated section.

What you're testing and why it matters

A phone has more cameras than it seems: on the back there are usually two or three separate modules — the main camera, the ultra-wide and, on many models, a telephoto — plus the front camera. Beside them works a row of tiny sensors: the proximity sensor that turns the screen off at your ear, the light sensor that moves brightness, the accelerometer and gyroscope that know how you tilt the phone, the magnetometer (the compass), GPS and the fingerprint or face readers. Each can fail separately — which is why each is tested separately.

3D phone. Highlighted parts: camera island, rear camera, front camera.

The camera island holds several modules: each has its own lens, image sensor and flex — which is why one camera can be dead while the rest work.

Each zoom level in the Camera app uses a different lens: 0.5x is the ultra-wide, 1x the main camera, and 2x, 3x or 5x the telephoto — the exact steps differ from model to model. In between, the zoom is digital, meaning a crop of the image, so test exactly on the marked steps. The proximity and light sensors sit at the top of the phone, around the earpiece and front camera, usually right under the screen glass — an important detail later in this guide.

0 of 14 done

The cameras: every lens, focus, flash, video

The full camera test is nearly identical to the one Apple recommends for a second-hand iPhone: photos in good and poor light, tapping the screen to focus, all cameras — including the telephoto and ultra-wide — and a video watched at the end. The same scheme works on any Android.

  1. Set the stage

    Wipe the rear lenses and the front one with a microfiber cloth — a grease smear looks exactly like a broken camera. Remove the case, the camera film and any magnetic mount: Apple says an accessory or a magnet near the camera can cause blur and odd focus behavior.

  2. The main camera, in good light

    Take a few photos and tap the screen right on the subject — focus should move there. Photograph something close, 10–15 cm away, then something far: the image should sharpen quickly, without “hunting” back and forth.

  3. Every zoom level, in turn

    Tap 0.5x, 1x and your phone's telephoto step in turn and take a photo with each. Then the trick that tells you which lens is dead: cover the rear cameras with your finger, one at a time — at each zoom level, the working lens is the one whose image disappears when you cover it.

    No telephoto? No problem — test only the cameras your phone has.

  4. The front camera

    Switch to the front camera (the rotate button) and take a selfie, plus a shot with light coming from behind you. If you make video calls often, record a few seconds of video too — the front camera is a separate module and can fail on its own.

  5. The flash and the torch

    Somewhere dark, set the flash to stay on for every shot (not Auto) and take a photo — the LED must blink and light the scene. Then check the torch separately: from Control Center on iPhone, from the quick panel on Android. A black photo with the flash on means the LED or its link to the camera.

    On “Auto” the phone decides when to fire — many photos without a flash are normal, not a fault.

  6. A video with sound

    Film 15–30 seconds while talking into the phone, then play the clip: the image should be smooth and focused, the voice clear. A three-in-one test — camera, microphone on recording and speaker on playback.

Tip

A faint rattle when you shake the phone is usually normal: Google explains for Pixel that the camera's focusing parts move freely while the app is closed, and that holds for many phones with optical stabilization. It's only a warning sign if focus never settles or photos come out blurry every time.

Bad photos don't automatically mean a dead part — dirt on the lens, a case or a magnet gives the same effect. If after cleaning one particular camera still shows a black screen, an error or a warped image, it's almost certainly that module: on a multi-camera phone only the dead module is replaced, not the whole island — see what a camera replacement involves.

Everyday sensors: proximity, light, rotation

These sensors work in silence and you only notice them when they're gone: the screen stays on at your ear, brightness stops adapting, the map points somewhere else. Each has a one-minute test.

  1. Proximity — the test happens in a call

    Call someone and hold the phone to your ear: the screen must go dark at once, so your cheek can't press anything. Move it away — it lights back up. Outside a call nothing visible happens, because the sensor works almost only during calls and in your pocket. A screen that stays on at your ear, or that won't light up after the call, means the proximity sensor needs a look.

    Don't want to call anyone? A WhatsApp call or a voice message played at your ear works the same — what matters is that the phone is “in a call”.

    Maria
    Mobile

    Phone screen: Maria. Mobile

  2. The light sensor — a torch is the proof

    Turn on automatic brightness: on Samsung it's under Settings → Display → Adaptive brightness, on Pixel under Settings → Display & touch → Adaptive brightness, and on iPhone along the path in the image below. Then shine a torch at the top of the screen: within seconds, brightness rises on its own. Cover the sensor with a finger — it drops back.

    Apple says it outright: on iPhone the ambient light sensor moves the brightness slider with the light around you — a slider that stays put means a sensor that can't see.

  3. Rotation — the accelerometer at work

    Turn on auto-rotate from the quick panel and turn the phone sideways: the picture should follow within two or three seconds. That checks both the accelerometer and the gyroscope — the same sensors that drive games and the level.

    Internet
    Bluetooth
    Flashlight
    Auto-rotate
    NFC
    Battery Saver

    Phone screen: Internet, Bluetooth, Flashlight, Auto-rotate, NFC, Battery Saver

  4. Fingerprint, face and NFC

    Lock and unlock the phone with your fingerprint several times, then with your face. If it fails often, delete the data and enrol again with clean, dry hands — Samsung warns that wet fingers, scars and thick protectors fool the reader. Re-enrolment is under Settings → Biometrics and security → Fingerprints on Samsung (on newer One UI, Security & privacy → Fingerprints) and under Settings → Face ID & Passcode (or Touch ID & Passcode) on iPhone. For NFC it's a single move: turn it on and hold the phone to a bank card or a shop terminal — it must react.

Settings
General
Accessibility
Display & Brightness
Battery
Step 1
Settings
Accessibility
VoiceOver
Zoom
Display & Text Size
Motion
Step 2
Accessibility
Display & Text Size
Color Filters
Reduce White Point
Auto-Brightness
Step 3
Accessibility › Display & Text Size › Auto-Brightness

Menu path, screen by screen: 1. Settings: General; Accessibility ←; Display & Brightness; Battery. 2. Accessibility: VoiceOver; Zoom; Display & Text Size ←; Motion. 3. Display & Text Size: Color Filters; Reduce White Point; Auto-Brightness (on) ←

The path to the Auto-Brightness switch on iPhone — on iOS it lives under Accessibility, not Display & Brightness.

Warning

Screen no longer going dark in calls after a screen replacement? Almost certainly the new screen or a protector is covering the proximity sensor — details in “Why a sensor dies after a new screen”.

Compass and GPS: the test happens outdoors

The compass is really a magnetometer: it measures the Earth's magnetic field and is the easiest to disturb — a magnetic case, a magnetic car mount or a strong speaker can throw it well off. GPS is the opposite: a satellite receiver that needs open sky and barely works indoors.

  1. Check the compass

    Open Google Maps and look at the blue dot's beam — the cone that shows where the phone is pointing. Aim it at a street or landmark you know and compare with the map. On iPhone you can also open the Compass app: Apple recommends holding the phone flat, level, for accurate readings.

  2. Calibrate with a figure 8

    Beam wide or pointing the wrong way? In Maps tap the blue dot → Calibrate, or move the phone through the air drawing a figure 8 a few times — Google's official advice — until the beam narrows and points the right way. Do it away from cars, metal poles and magnetic cases.

    On iPhone also check the Compass Calibration switch under Settings → Privacy & Security → Location Services → System Services — if it's off, the compass can't calibrate.

    Compass calibration

    Move the phone in a figure 8 until the beam narrows and points the right way.

    Done
    Move the phone through the air drawing a figure 8

    Gesture on the phone screen: Move the phone through the air drawing a figure 8.

  3. GPS gets tested outdoors

    Step outside, away from tall buildings if you can, and open Maps. The blue dot should appear on your position within seconds, with a light blue circle around it — the smaller the circle, the more precise the location. Google says GPS finds your location to roughly 20 meters: walk 20–30 meters and watch whether the dot follows.

Note

Weak or missing GPS indoors, in an underground car park or on the metro is normal — Google explains it's the lack of sky, not the phone; indoors, location is estimated from Wi-Fi networks and cell towers, with accuracy of up to a few kilometres. Test outside before any verdict.

Warning

The figure-8 motion calibrates a miscalibrated compass — it doesn't repair a dead magnetometer. Direction frozen or erratic even after calibrating, away from any magnet? The sensor is a part, not a setting.

The built-in tests, by brand

Manufacturers have left their own tests inside phones — handy when you want a second confirmation or you're testing without internet. Samsung and Xiaomi have full sensor and camera tests; Pixel and iPhone have no test menu for them, but there are the alternatives below.

  1. Open Samsung Members → Diagnostics → Phone diagnostics → Test all — or pick Sensors and Camera separately.
  2. Alternatively, dial *#0*# in the Phone app: the SENSOR button shows live values from the sensors, and MEGA CAM and FRONT CAM start the cameras.
  3. On the SENSOR screen, cover the top of the phone or tilt it: the numbers must move. Frozen values = a sensor to check.
One UI
Samsung Members
Diagnostics
Support
Step 1
Diagnostics
Phone diagnostics
Error reports
Step 2
Phone diagnostics
Test all
Sensors
Camera
Touch screen
Speaker
Step 3
Diagnostics › Phone diagnostics › Sensors

Menu path, screen by screen: 1. Samsung Members: Diagnostics ←; Support. 2. Diagnostics: Phone diagnostics ←; Error reports. 3. Phone diagnostics: Test all; Sensors ←; Camera; Touch screen; Speaker

The official route: Samsung diagnostics checks the sensors and the camera one by one and tells you at the end what passed and what didn't.
Sensor
Accelerometer
Proximity
Light
Barometer

Phone screen: Sensor: Accelerometer; Proximity ←; Light; Barometer

The SENSOR screen inside *#0*# is always in English and differs slightly by model: next to each name you see live values and a graph — cover the sensor and watch the numbers move.

Every button in that menu, explained, in the Samsung test codes guide.

Why a sensor dies after a new screen

The proximity and light sensors sit at the top of the phone, attached to the display or right under it — on many models they are part of the same assembly or the same flex. That is why the commonest “dead sensor” shows up right after a screen replacement or after a new protector goes on. The same goes for the under-display fingerprint reader: it reads through the glass, and what you put on top matters.

  • Protector or case over the sensor window — a protector with a thick black border or fitted crooked covers proximity and light; the first step is always to remove it and retest.
  • Adhesive or dust — excess adhesive or dust left during fitting can block the sensor's tiny window.
  • A non-genuine or badly fitted screen — Apple itself lists among the signs of a non-genuine display “the display not turning off during phone calls” and “degraded ambient-light-sensor performance” — precisely what you test here.
  • A damaged flex — the sensor sits on a flex that can tear or be fitted at a strain during disassembly; the classic symptom is a sensor that works sometimes.

The compass

recalibrates with the figure-8 / in Maps

Auto-brightness

relearns your preferences on its own

Fingerprint and face

re-enrol in settings

Proximity, accelerometer, gyroscope

no user calibration — a part or a repair

Warning

No “sensor calibration” app can revive a dead sensor — factory calibration happens on the line or in a workshop. On iPhone, genuine parts are individually calibrated during fitting, Apple explains: after a part is replaced, the Repair Assistant may be needed to finish the repair — until then features like Face ID or Touch ID can be unavailable.

When the test becomes a repair job

The test results, translated briefly
What you foundThe usual causeWhat comes next
Black screen or error on one camerathe camera module or its flexa repair — only the module is replaced
Blurry photos even after cleaning the lensscratched lens or dead modulea repair
Focus “hunts” and never settlesa failed autofocus or stabilisera repair
Screen stays on at your ear in callsproximity covered or deadfirst remove the protector; then a repair
Erratic auto-brightnesslight sensor covered or a partretest without the case; then a repair
Compass frozen even after calibratingdead magnetometer or interferenceretest away from magnets; then a repair
GPS won't lock even outdoors, clear skyantenna or module — rarea repair
Fingerprint dead after a new screenscreen or protector incompatible with the under-display readera different protector; otherwise the screen

Buying a second-hand phone? This set of tests, run in front of the seller, is the most direct evidence of its condition — the full checklist is in the used-phone check guide. If a dead camera or sensor came out of it, see what the repair involves in the guide to camera, speaker and microphone replacement, and for a diagnosis on the bench you'll find us at the service page or through the quote form.

Common mistakes when testing

Do

  • Test GPS outdoors, with open sky — indoors it's normal for it to be weak or absent.
  • Repeat a failed test once, without the case and the protector, before reaching a verdict.
  • Tap the screen on the subject when shooting — that's how you check real focus, not chance.
  • Hold the phone flat when reading the compass — Apple's recommendation for accurate readings.

Don't

  • Don't test proximity outside a call — away from calls the sensor shows nothing visible.
  • Don't judge the compass next to a magnetic case or a metal mount — move away and try again.
  • Don't mistake the rattle of focusing parts for a fault — on phones with optical stabilization it's normal behavior.
  • Don't install apps that “repair” or “calibrate” sensors — they can't; a dead sensor is a part, not a setting.

Frequently asked questions

Why doesn't my screen turn off when I'm on a call?
Almost certainly the proximity sensor: either it's covered — a thick black-edged protector, a case, a badly fitted screen — or it's dead. The test happens during a call: cover the top of the screen with your palm and the display must go dark. If it doesn't go dark even without the protector and case, it's a repair matter; on Samsung you can see its live values under *#0*# → SENSOR, and on Xiaomi in CIT, under Proximity sensor test.
How do I tell which lens is dead on a multi-camera phone?
Take a photo at every zoom level, then cover the rear cameras with your finger, one at a time: at each level, the working lens is the one whose image disappears when covered. A level that constantly shows a black screen, an error or a warped image — after you've cleaned the glass — usually means its module, and on a multi-camera phone only the dead module is replaced.
My camera rattles when I shake the phone. Is it broken?
Usually not. On phones with optical stabilization the parts that focus the image move freely while the Camera app is closed — Google describes this rattle when shaken as normal, expected behavior on Pixel. The warning sign is different: focus that never settles or photos that come out blurry every time.
Can the proximity sensor be calibrated?
Not by the user — the sensor is calibrated at the factory and no brand offers a public setting for it. When it misbehaves, the cause is almost always physical: a thick or misaligned protector, adhesive, a non-genuine screen or its flex. Apple even lists “the display not turning off during calls” among the signs of a non-genuine screen.
Why does Maps show me the wrong direction?
The compass — the magnetometer — is either miscalibrated or disturbed by magnets. Move the phone through the air drawing a figure 8 a few times, away from magnetic cases and metal mounts — Google's official advice. If the blue dot's beam stays wide after a few tries, or the direction stays frozen, the sensor needs checking in a workshop.
GPS doesn't work indoors or in my car — is it dead?
Indoors, in an underground car park or on the metro it's normal for it to fail: GPS needs open sky, and inside, the phone guesses location from Wi-Fi networks and cell towers, far less precise — Google mentions roughly 20-meter accuracy only in good conditions. The correct test is outdoors, with clear sky. Only if it can't find your position there either is it a hardware check.
How can I tell if the flash is dead or switched off?
Set the flash to stay on in the Camera app (not Auto) and take a photo in the dark. If the LED doesn't blink, check the torch separately — from the quick panel on Android or Control Center on iPhone. A dead torch means the LED or its circuit; a working torch but flashless photos means the setting or the camera. On “Auto” the phone decides when to use it.

Does your phone look different, or is something missing here?

Menus and buttons differ from model to model and change with updates. If these steps do not match your phone or you cannot find what you need, tell us your model and what you see on the screen: we will answer you and update the guide.

Checked against

Found something that doesn't work?

Send us your test results — we'll tell you what the repair involves.