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.
117 questions
0
votes
0
answers
40
views
How to disable turning screen off based on proximity / light sensor?
Problem: Android 13.0.0 turns screen off based on proximity / light sensor.
How to disable turning screen off based on proximity / light sensor?
I've already tried to find a dedicated setting by ...
0
votes
0
answers
54
views
Increase accelerometer sensitivity
I have a Samsung Galaxy S23 Ultra. I wish to increase the sensitivity of my accelerometer. I play a combat game with jets and cannot switch to a joystick as I have played too long with an ...
0
votes
0
answers
27
views
Prevent accidental touch while speaking on GrapheneOS (AOSP)
I've got a Google Pixel 8 Pro running GrapheneOS. When I'm on the phone talking to somebody and hold the phone to my ear, it very often accidentally registers taps. This e.g. leads to activation of ...
0
votes
0
answers
233
views
"Changing sensor privacy requires the following permission: android.permission.MANAGE_SENSOR_PRIVACY" when trying to change sensor_privacy
I would like to use the following command from ADB
service call sensor_privacy 4 i32 1
to turn OFF my sensor, but it gives me
Changing sensor privacy requires the following permission: android....
1
vote
0
answers
169
views
How can I disable my phone's magnetic field sensor or stop Android from using its data for `Sensor.TYPE_ROTATION_VECTOR`?
I've noticed that OsmAND's compass is much more accurate when forcing it to use the orientation sensor (Sensor.TYPE_ORIENTATION) instead of the magnetic field sensor (Sensor.TYPE_MAGNETIC_FIELD).
...
0
votes
0
answers
47
views
How can I get tracking data (transparently) from Android, like the data from sensors that apps routinely collect?
I want to make a data science workshop. I know that some apps in smartphones in general have the ability to get tracking data, for ad, tracking and surveillance purposes.
I want to make people more ...
5
votes
1
answer
3k
views
Body Sensor Permission? What all kinds of information could it get of our body?
How is the Body Sensor Permission utilized by the apps?
I'm aware that it uses a hall and proximity sensor to detect human presence. I want to know how exactly it detects specific people. I'm talking ...
2
votes
0
answers
342
views
How to enable the light sensor with ADB while the screen is off?
how to enable the light sensor with ADB while the screen is off?
I want to check the values of /sys/class/sensors/light_sensor/lux, but it changes only when the screen is on.
What I have tried, but ...
2
votes
1
answer
463
views
Why does the fingerprint sensor trigger the screen?
When I touch the fingerprint sensor while I watch YouTube in the app it activates the controls on YouTube, like I was tapping the screen. Somehow the YouTube app and maybe other apps listen to the ...
1
vote
0
answers
874
views
Do Samsung finger scanners constantly use battery if you keep your finger on the sensor without needing to scan anything?
I'm using the Samsung A32 5G.
It has a finger sensor that allows the phone to be unlocked, I'm wondering if the phone is on and you constantly keep your finger on that sensor, will it continue to try ...
3
votes
0
answers
215
views
find out what app/package uses sensor
on my device running AOSP something accesses a sensor of my phone continuously, preventing it from going into deep sleep and thus draining battery.
Logcat shows the pid, but that just links to android....
4
votes
1
answer
6k
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 ...
2
votes
1
answer
3k
views
Can Sensors Off (developer options) be controlled via ADB?
Can Sensors Off (developer options) introduced in Android 10 be controlled via ADB?
Haven't got it from AOSP sources yet: Sensors Off | Android Open Source Project
1
vote
0
answers
24
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 ...
1
vote
1
answer
99
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 ...
0
votes
0
answers
57
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.
"...
0
votes
2
answers
100
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 ...
2
votes
0
answers
75
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:...
1
vote
0
answers
725
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 ...
2
votes
1
answer
581
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 ...
0
votes
1
answer
3k
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 ...
1
vote
0
answers
36
views
Can Doogee Y9 Plus run AR apps?
I have recently bought a Doogee Y9 Plus. As I found out, the phone does not have a compass or gyroscope.
I wanted to ask if the phone could still use AR apps. The phone isn't rooted, but I might even ...
3
votes
0
answers
1k
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="...
1
vote
1
answer
5k
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 ...
0
votes
0
answers
1k
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....
1
vote
1
answer
521
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 ...
0
votes
1
answer
3k
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, ...
0
votes
2
answers
11k
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. ...
0
votes
0
answers
125
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 ...
3
votes
2
answers
529
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 ...
0
votes
1
answer
788
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 ...
0
votes
0
answers
31
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?
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. ...
0
votes
2
answers
752
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 ...
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 ...
1
vote
0
answers
36
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 ...
1
vote
0
answers
137
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 ...
0
votes
0
answers
31
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 ...
3
votes
2
answers
8k
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....
1
vote
2
answers
664
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 ...
1
vote
1
answer
73
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 ...
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 ...
0
votes
1
answer
410
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 ...
1
vote
0
answers
1k
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 ...
3
votes
1
answer
7k
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=...
1
vote
0
answers
1k
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 ...
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 ...
0
votes
1
answer
6k
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 ...
0
votes
1
answer
469
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?
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 ...