Skip to main content
9 votes
Accepted

How do I get the temperature of my phone via ADB?

This is simple, on Android 10 or later, once you find out how. adb shell dumpsys thermalservice On my Samsung A52 5G with Android 12, this produces, with values apparently in Celsius. IsStatusOverride:...
John Dallman's user avatar
  • 1,387
7 votes
Accepted

List body sensors available on Android devices

ADB can be your friend here: adb shell dumpsys sensorservice will provide you with a list of all your devices sensors plus details on them. In the following example, I've just captured a list of ...
Izzy's user avatar
  • 91.2k
5 votes
Accepted

Body Sensor Permission? What all kinds of information could it get of our body?

Based on the information provided by Google's support page on the topic, it sounds like they're using almost exclusively accelerometer data. The things they mention for Pixel devices (and are most ...
jlehenbauer's user avatar
5 votes

Why doesn't Android compass react to magnet?

The sensor algorithm people worked hard to make sure that the "compass sensor" is not affected by stray ambient magnetic field. If you want to see magnetic field data, use the magnetic field sensor ...
Ian's user avatar
  • 51
4 votes

"Significant Motion sensor" same as accelerometer?

The significant motion sensor is a virtual sensor using the physical accelerometer. From android.com: A significant motion detector triggers when the detecting a “significant motion”: a motion ...
Walter Wolf's user avatar
4 votes

Can i fake having a gyroscope?

You can, but it requires extensive android development knowledge, rooting your phone (which i do not condone and do not take responsibility for any errors that occur if you choose to do it). This isn'...
wajd's user avatar
  • 41
3 votes

Do different phones have different accelerometer quality? Is there a way to measure it?

If you want to know what sensor is inside your phone, you should download Cpu-Z. It provides information about all hardware inside your phone and gives the name of the chips. So you can google for ...
ParTi5qn's user avatar
3 votes

Measuring temperature using built-in laser in Nexus 5x

I'm not an expert in this field, but reading the explanation of infrared thermometer on Wikipedia, I don't think general Android pdevice has sufficient component to do the reading. Here's the ...
Andrew T.'s user avatar
  • 16.2k
3 votes

Why isn't the touchscreen pressure reading being put into use by Android?

Don't run to conclusions early - some Huawei/Meizu/ZTE flagships has it, sometimes referred to as "3D Press" or other names. Ultimately the feature is worthless - it requires 3rd-party apps to ...
Andy Yan's user avatar
  • 9,539
2 votes
Accepted

What exactly is a "Sensor"

Tricky question... But the answer is quite simple. It's the purpose of the sensor. If it's built to detect (or sense) changes of things (like gravity or light) and give an output at the moment it ...
Walter Wolf's user avatar
2 votes

Difference between a gyro sensor and a compass sensor?

A compass is showing north, nothing more. A gyro sensor checks the horizontal position, where is up and down. With this sensor you can create these funny games like "Waterslide", where the phone ...
franc's user avatar
  • 417
2 votes

Storing & getting the device orientation (yaw, pitch, roll) when taking a photo

This is one of those problems that I believe requires a documented standard: the same reason every platform trivially accesses the GPS location of a photo is because of EXIF and it's standardized ...
God of Biscuits's user avatar
2 votes
Accepted

Do different phones have different accelerometer quality? Is there a way to measure it?

The quality of the sensor is mainly determined by the used sensor chip. For a lot of devices you can find the info which sensor chip is used for providing the accelerometer/gyroscope sensor data. E.g....
Robert's user avatar
  • 20.7k
2 votes
Accepted

How to stop uncorrect counting of my steps on Huawei Health app?

I'm not sure what all sensor data is being used by the app, but most would rely on the input of the accelerometer. And as such it is all based on its algorithm as to what kind of moments it identifies ...
singhnsk's user avatar
  • 2,427
1 vote

How to calibrate accelerometer sensor on Google Nexus 6P?

I have this too, and likewise it has persisted after getting a replacement device. It interferes with panoramas and photospheres, cardboard and the like. No idea on a fix. I think I'll do a second ...
Alex Schaff's user avatar
1 vote

Xiaomi Mi A1 - Touch screen, capacitive buttons, fingerprint scanner dead

I'm sorry. but I believe that it is a hardware issue. The touch feedback and the capactive key feedback is sometimes carried over by the same flex ribbon. So, it could be either a loose connection of ...
singhnsk's user avatar
  • 2,427
1 vote
Accepted

Disable magnetic screen on/off *without* Xposed?

You can delete /dev/input/event6 directly. Then everything with the Hall sensor will stop working. To make this happen automatically, you can write a simple script and let it auto-run at boot. #!/...
iBug's user avatar
  • 7,787
1 vote
Accepted

Can Sensors Off (developer options) be controlled via ADB?

First of all, thanks to @irfan-latif for providing the right answer to this question in the comments column. But apparently, this will be allowed. So, I will help complete the answer. On Android 10: ...
Agus Fadillah Sani's user avatar
1 vote
Accepted

Android 10 phone screen only unlocks if the light sensor detects enough light

Phones have a second light based sensor: the sensor that detects if you hold your phone near the face while a phone call (often called proximity sensor). If it detects you are close the screen the ...
Robert's user avatar
  • 20.7k
1 vote

How to automatically turn on the screen on double touch of turned-off screen?

You have two other options in addition to what Omar mentioned. Settings > Display > Navigation Bar > Hard Press Home Button With this activated, there's an area at the bottom of the display, ...
Gazumbo's user avatar
  • 11
1 vote

How to automatically turn on the screen on double touch of turned-off screen?

You can enable "Lift to wake" from: Settings -> Advanced features -> Motions and gestures That's a feature in Samsung's OneUI.
Omar Namis's user avatar
1 vote
Accepted

Proximity Sensor is mocked to 5cm, screen still goes dark

Well, I thought I had tried all possible combinations, but seems like I forgot to save the mocked values. With LTR579 ALSPS: 0cm and LTR579 ALSPS-Non Wakeup Secondary: 5cm, it now works as I want it ...
DLIK's user avatar
  • 31
1 vote

How do Android EMF detectors work?

The question does not only apply to android phones, but to all mobile devices. Our mobile devices use EMF to communicate. Mobile phones are, by definition, devices that can detect EMF since their ...
Danish Shakeel's user avatar
1 vote

How to stop uncorrect counting of my steps on Huawei Health app?

(I know this is an old thread but this is still a big issue with a lot of phones models and ppl might still find this universal solution useful) Rootmode method I disabled Samsung Step Counter sensor ...
Muzzamil's user avatar
1 vote

Turning on Android device with motion detector (external device?)

I have been looking for a way to have the tablet screen on when I get close to the Tablet which is mounted on the wall to monitor my home. Just like the Nest thermostat. I recently purchased the ...
Atilyg's user avatar
  • 11
1 vote

What is a "Hall" sensor, and what is it used for?

I know the question was about the Nexus, but from Samsung's website, "Hall Sensor: Recognizes whether the cover is open or closed."
Karen's user avatar
  • 11
1 vote

Accessing light sensor raw data

I have a rooted Samsun 7 device (sm-g935v) and I can read the raw data from: /sys/class/sensors/light_sensor/lux
dafnahaktana's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible