Questions tagged [sensors]

Use this tag for questions related to issues with sensors equipped in devices, such as: Ambient light (ALS), Accelerometer, Back-illuminated sensor (Backside Illumination, BSI or BI), etc. Note that 'compass', 'gps', 'gyroscope', and 'proximity-sensor' have their own tags.

Filter by
Sorted by
Tagged with
3 votes
1 answer
118 views

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

At work, I run lots of automated software testing on Android phones. They stay permanently plugged into a development machine, and are given jobs to run via ADB. I'd very much like to be able to ...
user avatar
0 votes
0 answers
6 views

How to diagnostically determine the cause for loss of NFC functionality?

My wife has the same phone as I (stock OnePlus 8T Plus 5G, except mine is TMO, and hers is unlocked, both current on updates), but for some reason hers is unable to use the Tap-and-Pay function ...
user avatar
  • 407
1 vote
0 answers
14 views

Simultaneous USB connections limitation

I get my hand on a Samsung Galaxy Tab A7 Lite LTE and I want to connect several devices to it. I use an USB Hub with 7 sensors connected to it and my app retrieve all the data. My problem is I can't ...
user avatar
  • 11
1 vote
1 answer
14 views

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

This is a very strange issue I'm having. I have an LG K40S with Android 10 and a couple of days ago I started having problems unlocking its screen. Neither the power button nor the biometrics sensor ...
user avatar
0 votes
0 answers
30 views

How can I do low-power step counting on the LG G5?

Background information (you can skip this) The Sensor Detect app says that the LG G5 includes a "LGE Step Counter Sensor" made by "QTI" which uses about 0.18 mA of energy. "...
user avatar
0 votes
2 answers
49 views

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

Is it possible to turn on my Android 10 phone's (Samsung Galaxy S9) screen like my Android 11 tablet (Samsung Galaxy Tab S6), by double touching the turned-off screen? Or when detecting that it has ...
user avatar
0 votes
0 answers
529 views

LineageOS 18 on old Google Nexus 7 2013 WiFi FHD (flo / flox): sensors not working

I've recently installed the latest LineageOS 18 on my old Google Nexus 7 FHD (flo) from 2013. I had to repartition it while installing a new OS, as per the instructions. It seems it all went fine, ...
user avatar
  • 139
2 votes
0 answers
65 views

Repeating error on logcat: "FingerGoodix: Useless INT"

I have a problem with a fingerprint scanner. It doesn't work no matter what firmware I use. I flashed different fixes but it didn't help. I captured a log and found these repetitive lines: 02-10 14:23:...
user avatar
1 vote
0 answers
208 views

How to set emulator sensor values programmatically?

I'm looking for a way to set the x, y, and z values for the accelerometer sensor on an android emulator for tests using espresso. My test requires that the device be positioned in a specific way and I ...
user avatar
1 vote
1 answer
165 views

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

After replacing the display of my Xiaomi Mi A2 Lite, my proximity sensor is giving me wrong values (saying, my phone is always covered). I mocked my sensors using the XPosed Sensor Disable App, and ...
user avatar
  • 11
0 votes
1 answer
667 views

Phone temperature sensor not working - Charging slow - How to fix?

Recently, something has happened to my phone's temperature sensor. It's showing ridiculously high values for the temperature (over 100 degrees), even though it's very cold. This has caused my phone to ...
user avatar
2 votes
0 answers
419 views

Need help understanding logs to find the cause of random reboots on android device

Can someone help me read these logs? This is the only error that I have seen pop up repeatedly in multiple logcats. Logs: 05-20 19:14:50.604 12571 12571 E lhd : <McuCrash HwException="...
user avatar
1 vote
1 answer
3k views

How do Android EMF detectors work?

Searching the play store for emf detector shows a bunch of apps that can measure the electromagnetic radiation level and they do seem to somehow work. What is the operating principle behind these ...
user avatar
  • 475
0 votes
0 answers
718 views

Difference between Android sensors (acceleration, gyroscope, rotation vector)

I have an Android 7 phone and I have written an Android application for recording the following sensor values: Accelerometer (Sensor.TYPE_ACCELEROMETER) Linear acceleration (Sensor....
user avatar
  • 115
0 votes
1 answer
294 views

Is it possible to access Face ID sensors raw data?

My Honor 10 has facial recognition capability in the dark, I suppose it works like Apple's Face ID which would rely on and IR camera and an Infrared pattern/dot projector. So, since the Settings app ...
user avatar
0 votes
1 answer
2k views

Send fake sensor value to an Android real device

Is possible to simulate an event on a Android real device? More precisely, I want to test an application which does something if a particular temperature value is detected. Is there an adb command, ...
user avatar
  • 1
0 votes
2 answers
10k views

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

I have Huawei Mate 9 with Huawei health app preloaded. I travel most of the time by trains. I noticed the Huawei health recogizes any shaking in the train as steps while I am just standing or sitting. ...
user avatar
  • 117
0 votes
0 answers
111 views

How to disable sensors on-demand to reduce power consumption?

Nowadays, any Android device has a big sensor amount implemented. It is true that most of the sensors do not require a considerable amount of power for their operation. But the sum of the power ...
user avatar
  • 101
3 votes
2 answers
477 views

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

I'm creating an Android application that basically detects the vibration of a car on streets and saves the data in a file that I'll analyze later. But I'm curious to know if there's such a thing as an ...
user avatar
0 votes
1 answer
712 views

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

A week ago all the input sensors (touch screen, capacitive buttons, fingerprint scanner) on my Xiaomi Mi A1 died, completely out of the blue. The device had never been rooted, and was running the ...
user avatar
  • 101
0 votes
0 answers
30 views

How To Transmit (text/tweet) Temperature and Humidity Data From a Samsung S4

I'd like to be able to use my Samsung S4 as a wireless temperature/humidity for a climate controlled storage unit. Does anyone know of a way to have that data texted/tweeted from the phone?
user avatar
  • 101
4 votes
1 answer
8k views

Disable magnetic screen on/off *without* Xposed?

Long story short, looking for a way to either disable the behaviour of screen turning on/off in reaction to magnets, or disable the Hall sensor (the sensor responsible for the reaction) altogether. ...
user avatar
  • 9,370
2 votes
0 answers
13k views

Is there a way to install a Magnetometer or Compass Sensor in a phone?

I found out a little too late that my new phone (Motorola Moto G4) does not have a compass sensor in it. I love this phone otherwise, but I have apps that I use quite a bit that require a compass. ...
user avatar
0 votes
2 answers
731 views

S-helth in my Samsung Note 5 'none rooted' android 7.0 Nougat, is not working

S-helth in my Samsung Note 5 'none rooted' android 7.0 Nougat, is not working, I tired so many methods... but no use my phone is not rooted, but I get following message every time I open s-helth, that ...
user avatar
1 vote
0 answers
1k views

Calibrate accelerometer?

I'm developing an app that is supposed to measure vertical accelerations, and in the process I've discovered that the accelerometer seems to be uncalibrated. When the phone is lying perfectly ...
user avatar
  • 581
1 vote
0 answers
33 views

Does no mention of GPS (on selling site) mean there is no GPS? [closed]

I'm looking at the AT&T LG Phoenix 2. It does not mention GPS on either Best Buy nor AT&T, and only mentions a cryptic "GPS Service for location accuracy" on LG's site. (Though phonearena.com ...
user avatar
  • 121
1 vote
0 answers
134 views

Where is the compass chip on the Nexus 6p?

I just replace the screen+lcd on my nexus 6p and the compass stopped working (this is not just a calibration issue, it looks like the compass chip is dead). I think that I might have damaged the ...
user avatar
  • 111
0 votes
0 answers
29 views

Is my device's acceleromoter working as it should?

I recently installed Asphalt Nitro, a racing app that supports using the device's "gyroscope" for steering. My device being as cheap as it is, it doesn't have a gyroscope, so I assume Asphalt is using ...
user avatar
3 votes
2 answers
7k views

"Significant Motion sensor" same as accelerometer?

I am trying to understand better the "Significant Motion" sensor: I know that I have accelerometer. Does it mean that the device also supports "Significant Motion sensor"? According to https://source....
user avatar
  • 339
1 vote
2 answers
527 views

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

Just now I discovered the "Pointer Location" dev app on Android, which tells how much pressure is being applied on the point on the touchscreen. They even have it since Android 1.0. I know there may ...
user avatar
1 vote
1 answer
64 views

What exactly is a "Sensor" [closed]

I know this questions sounds kind of stupid but I don't get it. My question is "What is a sensor?" The answer is obvious "In the broadest definition, a sensor is an object whose purpose is to ...
user avatar
  • 113
0 votes
1 answer
4k views

send fake accelerometer or multitouch signal to an application on Android x86

I have this challenge: I use proto.io to make demos of application I will develop, but this time I have to run it on a PC running Androidx86, connected to a touchscreen (no multitouch). Proto.io ...
user avatar
  • 101
0 votes
1 answer
355 views

Screen permanently black with broken proximity sensor and Proximity Sensor Accelerometer App

My phone's proximity sensor is broken and constantly signals "covered". The screen turns black when I'm called. I installed an app Proximity Sensor Accelerometer to solve this and played around with ...
user avatar
  • 101
1 vote
0 answers
991 views

Need to invert Accelerometer Axis

I need a way to flip the x-axis of my accelerometer (When the value would be positive, I want to make the output negative, and vice-versa). Currently, if I tilt the tablet into portrait mode (or ...
user avatar
  • 11
3 votes
1 answer
5k views

Google Maps shows constantly rotating direction despite other compass apps working correctly

Google Maps reports rotating direction (0.5 rotations / minute) with stationary phone. The compass is calibrated and works correctly in compass-specific apps. https://www.youtube.com/watch?v=...
user avatar
  • 131
1 vote
0 answers
974 views

How to invert and tweak the Android sensors like gyroscope, accelerometer, etc.?

I am experimenting some VR stuff and I need to know how to invert the gyro sensor and other sensors like accelerometer. Is there any kind of app that can do this? I would like to find an app that can ...
user avatar
0 votes
1 answer
6k views

Difference between a gyro sensor and a compass sensor?

Some Android devices feature a gyro (gyroscope) sensor. Some only have a compass sensor. Besides a gyro being 3D and a compass being 2D, what are the differences between a gyro sensor and a compass ...
user avatar
0 votes
1 answer
5k views

Send "step" sensor event from ADB

My smartphone has sensors those: Step Detector | Qualcomm | 0x0000001e | on-demand | no batching support | last=<0.000000> Step ...
user avatar
0 votes
1 answer
379 views

Accessing environment sensor data from a web page (HTML/JS/PHP)

Is it possible to fetch the temperature info on the device from a web page using html/javascript/php? Or would an app be required to do this?
user avatar
  • 149
5 votes
1 answer
14k views

Can i fake having a gyroscope?

I recently started playing 'Pokémon Go', but for the AR/VR to work a gyroscope is required. Is it possible to simulate/fake a gyroscope using the sensors already in the phone? I have a Vodafone smart ...
user avatar
  • 151
2 votes
1 answer
1k views

How to calibrate accelerometer sensor on Google Nexus 6P?

when building an application for Android, I've noticed that the rotation vector sensor gives readings that are off. The phone's rotation is reported a little bit tilted. When investigating, I found ...
user avatar
  • 121
1 vote
0 answers
88 views

How can a camera takes 8MP pictures in a SoC with 5MP support only?

In general specifications of Mediatek MT6572, it supports up to 5MP camera, but this product Yezz Andy A4M is supposed to support 8MP camera which is theorically not possible unless the camera is ...
user avatar
  • 800
3 votes
1 answer
7k views

List body sensors available on Android devices

How can I list body sensors available on Android devices?
user avatar
12 votes
4 answers
3k views

Why doesn't Android compass react to magnet?

I downloaded Compass program for Android and tried to bring strong magnet close to it. The pointed remained stable, as if there was no magnet nearby. Here is the video proof on YouTube. I have ...
user avatar
  • 539
-1 votes
1 answer
2k views

Measuring temperature using built-in laser in Nexus 5x

I know it's possible to measure temperature using a laser, and Nexus 5x phone has laser-based focus. So it might be possible to use reading of the laser input and output to gauge temperature at what ...
user avatar
1 vote
2 answers
1k views

Every Sensor Stopped Working

Recently I have discovered that literally all sensors on my Note 4 suddenly stopped working. This include the proximity sensor as well as the gyroscope sensor and GPS, etc.: Screenshot (click to ...
user avatar
0 votes
1 answer
507 views

How to remap device's sensors to touch screen?

I want to play Moto Racer on Fpse (psx emulator) with device's sensors. I installed Tincore but I have no clue on how to remap the sensors to touch the screen. In my head you had to remap the ...
user avatar
1 vote
1 answer
287 views

Light sensor values differes from device to device - are the readings reliable?

I have launched an onboard sensors reading application on 2 phones: HTC M8 (Android 6) and Motorola Moto G (Android 5). Those phones lays on my desk one just next to the other. And light sensor's ...
user avatar
7 votes
0 answers
240 views

Disable android Sensor only for Call

I'm using device GT i 9082, Android 6 AOSP ROM. My phone has a problem. While answering/dialing call, putting phone near to ear the screen goes off - this works fine but when taking phone off the ear ...
user avatar
1 vote
1 answer
269 views

apps fail to access orientation & magnetic sensors

I've just started using a Doogee Nova Y100X Android-based phone (it's android 5.0). It seems that my apps can only access some of the phone's sensors: accelerometer seems to work, proximity and ...
user avatar
  • 454