Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - mandatory sensors?

Is there a mandatory list for hardware on Android devices (e.g. magnetic field, distance)?

If not, which one are common?

like image 982
rnunes Avatar asked Feb 22 '26 00:02

rnunes


1 Answers

These things are defined in the Android Compatibility Definition Document (CDD).

Here is the current one. Check out the hardware-sensors section [7.3.].
As far as I can see all sensors are optional.

Most devices are equipped with the following sensors:

  • GPS
  • Accelerometer
  • Proximity sensor
  • Magnetic field
  • Light
  • Gravity

(from an API viewpoint, some might be the same on a hardware basis)


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!