Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
1
votes
2
answers
3832
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 refuse fast charging, and it charges very, very slowly. (~7 hours to charge) Is there anyway I coul...
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 refuse fast charging, and it charges very, very slowly. (~7 hours to charge)
Is there anyway I could turn off a sensor or fake its value so that my phone charging returns to normal?
Or is there anyway to force the phone to ignore the thermal limits during charging? (I know it's dangerous but I have no choice)
Deleting the thermal engine file doesn't fix the issue.
P.S: Android 10 | Qualcomm chipset | Rooted + Xposed
Leopard20
(11 rep)
Nov 1, 2020, 04:59 PM
• Last activity: May 19, 2025, 10:05 PM
1
votes
0
answers
1423
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 horizontal, the Z axis acceleration should be 9.81, but it is about 8.81 (X and Y being roughly 0.0). I can...
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 horizontal, the Z axis acceleration should be 9.81, but it is about 8.81 (X and Y being roughly 0.0).
I can of course offset the error from within the app by letting the user "calibrate" the app while the phone is lying still. But it seems odd that there is no method within Android to do this - sometimes Google Maps prompts me to calibrate the compass by moving the phone in figure eights - but I have not seen any way to calibrate other sensors... is it possible?
A further problem is that if I turn the phone so the top is facing straight up (up/down in line with the direction of gravity), the offset of the axis' are different from what is expected, and different from the offsets I get when the screen is facing up. This all seems to indicate that the accelerometer is not as accurate as one might think, and when adding rotation to the mix the results get even more skewed...
Magnus
(631 rep)
Apr 14, 2017, 03:23 PM
• Last activity: Nov 28, 2024, 12:58 PM
0
votes
0
answers
80
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 searching for "proximity", "light", "sensor", but couldn't find a dedicated setting.
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 searching for "proximity", "light", "sensor", but couldn't find a dedicated setting.
pmor
(129 rep)
Sep 21, 2024, 08:42 AM
0
votes
0
answers
129
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 accelerometer, tilting the phones to move left and right. It is like being able to move quicker left and right.
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 accelerometer, tilting the phones to move left and right. It is like being able to move quicker left and right.
Tom Harkness
(1 rep)
Aug 22, 2024, 01:20 PM
• Last activity: Aug 22, 2024, 02:18 PM
0
votes
0
answers
100
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 the flashlight or Bluetooth by the slide-down menu. Locking the screen after answering the call does n...
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 the flashlight or Bluetooth by the slide-down menu. Locking the screen after answering the call does not help, probably because the slide-down menu is accessible anyway. I cannot find any setting to prevent this. Does anyone have the same issue or any idea of how to fix this?
I used the app Sensors Toolbox to check whether the proximity sensor works as it should. And it does. However, it only detects small distances at the top of the phone (where the ear should be during the call, which is not always the case). If the phone detects a small distance to the skin during the call, the screen is deactivated, but is activated if the phone slips a little from that position. Is this normal?
smoff
(103 rep)
Jul 25, 2024, 11:12 AM
• Last activity: Jul 25, 2024, 02:44 PM
5
votes
1
answers
3860
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 of the smart lock: On-Body Detection. It used to be fairly inaccurate but the hall and proximity s...
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 of the smart lock: On-Body Detection. It used to be fairly inaccurate but the hall and proximity sensors cannot distinguish between bodies (i think, correct me if I'm wrong) \
So is there something I'm missing?
Can it read my ("vital signs") respiration rate, heart rate or body temperature (as it says on the screenshot)? I'm particularly interested because Google has it and Google has made it just for itself!? I've not seen any app request for this permission
!
. !
Googling shows body sensor is used to detect physical activities but it's not. The dedicated physical activity sensor is used for that.


44yu5h
(1617 rep)
Apr 26, 2023, 07:43 AM
• Last activity: Jun 26, 2024, 05:18 AM
1
votes
0
answers
44
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 do it.
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 do it.
vyPal
(11 rep)
Jun 29, 2020, 12:07 PM
• Last activity: Oct 7, 2023, 04:35 AM
2
votes
2
answers
3625
views
Access sensors and camera of Android device from shell
I have logged in to my Android phone through SSH [installed SSH client in Android and through Putty from Windows]. Now I can access all the directories like `root`, `dev`, `etc`, of the phone. Can someone tell me what's the native method to access the devices and sensors of the phone? I mean, how ca...
I have logged in to my Android phone through SSH [installed SSH client in Android and through Putty from Windows]. Now I can access all the directories like
root
, dev
, etc
, of the phone.
Can someone tell me what's the native method to access the devices and sensors of the phone? I mean, how can I control say, the camera, just from this Linux shell terminal of the phone?
user2875341
(21 rep)
Oct 13, 2013, 07:57 AM
• Last activity: Sep 21, 2023, 08:06 AM
1
votes
0
answers
247
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`). Other (more modern) apps use `Sensor.TYPE_ROTATION_VECTOR` however and according to [the Android doc...
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
).
Other (more modern) apps use Sensor.TYPE_ROTATION_VECTOR
however and according to [the Android documentation](https://source.android.com/docs/core/interaction/sensors/sensor-types#rotation_vector) , this combines data from the orientation sensors aswell as the magnetic field sensor.
How can I disable the magnetic field sensor entirely or prevent Android from using its data for Sensor.TYPE_ROTATION_VECTOR
?
Atemu
(609 rep)
Aug 23, 2023, 02:29 PM
5
votes
1
answers
7663
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 monitor their temperatures, and doing so via ADB would be the easy way.
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 monitor their temperatures, and doing so via ADB would be the easy way.
John Dallman
(2649 rep)
May 22, 2022, 01:44 PM
• Last activity: Aug 8, 2023, 09:26 PM
0
votes
0
answers
63
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 conscious of this, by letting the user get this data and work with it him/herself. Are there any more...
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 conscious of this, by letting the user get this data and work with it him/herself.
Are there any more direct ways for accessing data of sensors in a given android phone (in a transparent, non-invasive way), export it to a file in the phone so that it is possible to be read by a script for data science purposes?
Thanks in advance.
Barros
(1 rep)
Aug 4, 2023, 12:15 PM
• Last activity: Aug 5, 2023, 09:05 PM
2
votes
1
answers
1060
views
Physical placement of specific sensors in Google Nexus 7 (2012)
I am working on a project that requires me to know where specific sensors are physically located inside the device. I can estimate the location of NFC and light sensor (of course) but what about other sensors like magnetometer, g-sensor? If any of you know about the placement of specific sensors (do...
I am working on a project that requires me to know where specific sensors are physically located inside the device. I can estimate the location of NFC and light sensor (of course) but what about other sensors like magnetometer, g-sensor? If any of you know about the placement of specific sensors (doesn't have to be very precise) that would help me.
Booyaches
(121 rep)
Oct 24, 2013, 03:25 PM
• Last activity: May 3, 2023, 04:23 PM
2
votes
0
answers
444
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 did not work: 1. https://stackoverflow.com/a/39215746/21702461 There is no file called "enable" in tha...
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 did not work:
1. https://stackoverflow.com/a/39215746/21702461
There is no file called "enable" in that directory.
2. Tried to find a light sensor service, while the screen is on. But it seems there is none.
activity services | grep light
list | grep light
My phone:
Samsung Galaxy S4 with LineageOS and root enabled.
mc1
(21 rep)
Apr 21, 2023, 07:10 PM
2
votes
1
answers
3978
views
Can Sensors Off (developer options) be controlled via ADB?
Can Sensors Off (developer options) introduced in Android 10 be controlled via ADB? [![Sensors Off tile | System UI][1]][1] Haven't got it from AOSP sources yet: [Sensors Off | Android Open Source Project][2] [1]: https://i.sstatic.net/Urxksl.png [2]: https://source.android.com/devices/sensors/senso...
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

Agus Fadillah Sani
(91 rep)
Apr 16, 2022, 12:04 AM
• Last activity: Mar 18, 2023, 03:00 AM
2
votes
1
answers
609
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 event of the fingerprint sensor and reacts to it. This is very annoying to me since the fingerprint sen...
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 event of the fingerprint sensor and reacts to it. This is very annoying to me since the fingerprint sensor is in an easy to reach place so it happens often. This is reproducible on different phones and android versions. Is there a way to disable this behavior somehow?
Ádám Bozzay
(121 rep)
Dec 24, 2022, 12:24 PM
• Last activity: Feb 7, 2023, 04:52 PM
1
votes
0
answers
95
views
Is it possible to infer ambient temperature from battery temperature?
A few questions here and at Stack Overflow make battery temperature available for the inquiring minds: * [Get temperature of battery on Android](https://stackoverflow.com/questions/3997289/get-temperature-of-battery-on-android/3997349#3997349) * [How does Android obtain battery temperature](https://...
A few questions here and at Stack Overflow make battery temperature available for the inquiring minds:
* [Get temperature of battery on Android](https://stackoverflow.com/questions/3997289/get-temperature-of-battery-on-android/3997349#3997349)
* [How does Android obtain battery temperature](https://android.stackexchange.com/questions/29405/how-does-android-obtain-battery-temperature)
Yet, I'm curious if there's a method for deriving ambient temperature from battery data. A [quick search](http://patft.uspto.gov/netahtml/PTO/search-bool.html) at U.S. Patents and Trademarks' Office revealed no such patents (yet).
Deer Hunter
(145 rep)
Mar 30, 2014, 03:03 PM
• Last activity: Oct 23, 2022, 11:07 AM
1
votes
0
answers
1083
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 to pick up a fingerprint and use up battery, or will it only use battery when it is actively asking...
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 to pick up a fingerprint and use up battery, or will it only use battery when it is actively asking for a fingerprint to be scanned?
Do you not have to worry about leaving your fingerprint randomly on the sensor which could waste battery?
ShangWang
(373 rep)
Oct 11, 2022, 11:23 PM
3
votes
0
answers
238
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.hardware.sensors@2.1-service.multihal.odin (using adb and ps -p PID) an entry in logcat looks like...
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.hardware.sensors@2.1-service.multihal.odin (using adb and ps -p PID)
an entry in logcat looks like this:
10-10 21:33:18.615 869 954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:isWakeUpSensor()
10-10 21:33:18.617 869 954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:run() after post event here
10-10 21:33:18.817 869 954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:run() before post event here
10-10 21:33:18.817 869 954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:readEvents() enter
10-10 21:33:18.817 869 954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS: before polling
10-10 21:33:19.068 869 954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS: poll result timeout, continue for next
10-10 21:33:19.068 869 954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:readEvents() exit
Is there any way to find out what actually calls the sensor?
Thanks in advance!
Tobi Peter
(31 rep)
Oct 10, 2022, 07:46 PM
• Last activity: Oct 10, 2022, 11:10 PM
0
votes
1
answers
6302
views
Send "step" sensor event from ADB
My smartphone has sensors those: Step Detector | Qualcomm | 0x0000001e | on-demand | no batching support | last= Step Counter | Qualcomm | 0x0000001f | on-demand | no batching support | last= I think , when I shake phone (or when walk), Step Detector is running and send a data to applications. If I'...
My smartphone has sensors those:
Step Detector | Qualcomm | 0x0000001e | on-demand | no batching support | last=
Step Counter | Qualcomm | 0x0000001f | on-demand | no batching support | last=
I think , when I shake phone (or when walk), Step Detector is running and send a data to applications.
If I'm right, I can send a fake event with ADB connection. But I can't find anything about this.
For example:
> adb shell sendevent StepDetector
SamedDeger
(1 rep)
Jul 16, 2016, 10:46 PM
• Last activity: Aug 31, 2022, 03:00 PM
1
votes
0
answers
787
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 am aware that the android emulator has extended controls to modify the rotation and movement of the...
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 am aware that the android emulator has extended controls to modify the rotation and movement of the virtual sensors. However, I am looking for a way to do this automatically without needing to use the extended controls or physically moving an actual device.
I have successfully modified the virtual sensors through the emulator console when connecting to the emulator via telnet; however, I haven't found a way to achieve this programmatically. To do this via telnet, I first needed to enter an authentication token, then, I used the following console command
set acceleration x:y:z
.
I have previously used shell dumpsys battery set level
to modify the battery level of the device and I was wondering if there was a similar command to modify the x, y, and z components of the accelerometer.
Is there a way to achieve my goal programmatically, or will I need to aim for manually manipulating either the emulated or physical device during tests?
Jose Jaime
(11 rep)
Feb 4, 2021, 09:40 PM
• Last activity: Jun 12, 2022, 02:42 PM
Showing page 1 of 20 total questions