yashsingh1/xdaforums huggingface dataset:
[Google Pixel 3 XL Guides, News, & Discussion] luizao82:
had same issue on my píxel 3a. I read a lot about it, maybe corrupt partition etc... Finally I did a simple Job. Download stock image of Pie from Google repo, open bootloader and flash vía Fastboot. Then Phone automatically update to 10. Every sensor works again. But be carefull. This is an issue with Bluetooth connections.... So as soon as I pared my headphones... sensors stopped working again. So I flashed again Pie and now I have 10 with working sensors But no Bluetooth connections
[Google Pixel 3 XL Guides, News, & Discussion] santod040:
As far as I've seen, the Bluetooth related issue, is unrelated to the general sensor/persist partition corruption.

Which is why it's been said already, that flashing a factory age doesn't fix the persist partition issue.

For just Bluetooth, you might try some of the suggestions on the Google help pages.

Such as this page, for example:

https://support.google.com/pixelphone/thread/14908745?hl=en
[Google Pixel 3 XL Guides, News, & Discussion] luizao82:
Sorry, I did not explain it properly. I can use Bluetooth connection, but if I pair some device, automatically sensors stop working. I detected this problem inmediately after flashing, because it was the first thing I do after reinstall my apps. So I decided to flash again Pie, update via OTA to december update of Android 10. And now everything is working. Of course as soon I pair some device, I will lose sensors... So problem is not solved.

I don't know if this is due to corrupt partition or not... I am sharing my experience to everyone who might need it.
[Google Pixel 3 XL Guides, News, & Discussion] clarkeismine:
First off, thanks for everyone's support in making such a great thread and helping me get most of my sensors fixed!

I'm on a Pixel 3 (Non XL) and was struck with the sensor issue since the first Android 10 update occurred. For me though, it only affected the edge sensor from what I could tell and would sometimes "break" again after being fixed by a monthly update. I did not realize though at the time, that a hard reboot (turning off the phone, rather then restarting it) was when the sensor would stop working. This November (days out of warranty, so no real help from Google) all of my sensors stopped working after a hard reboot. At no point had I even unlocked my boot loader, up until a few days ago, so I am really not sure how my persist got corrupted. I sent my persist partition to my friend and he says it is definitely corrupted. Luckily, he has been able to recover some items, like my Camera config settings, so I have been able to mount the partition provided in post #110 and have been manually entering the calibration settings that he has been able to recovery from my corrupt persist_backup.img.

For those who have used the donor file from Post #110, did you get all your sensors back? I'm still without functioning Edge, Light, and Proximity. For the Proximity I entered my recovered calibration values, while making sure to not alter the carriage returns that were in the file, but to no avail.
[Google Pixel 3 XL Guides, News, & Discussion] smoki3:
No I never got it working
[Google Pixel 3 XL Guides, News, & Discussion] ultimatepichu:
Sorry to say your situation doesn't sound like the issue that we had here. For us none of our sensors were working upon clean Android 10 installation.

I'm not sure what device he had in #110, but I'd assume he has a Pixel3XL (crosshatch), given that this is a crosshatch forum. Since you have a non-XL, you should find a non-XL version. Should be floating somewhere in this thread.
[Google Pixel 3 XL Guides, News, & Discussion] Sanclub:
pixel xl temp. fix

I have a Pixel Xl and sometimes it goes complete audio craze. You cannot listen to YouTube, cannot hear from calls, etc. I did everything but didn't workout anything until I connect the charger after a reset/shutdown. It also works sometimes. If you can hear the charger connected sound that means your phone is good to use. If not the problems still persist. So that's my remedy for now. I hope it helps!
[Google Pixel 3 XL Guides, News, & Discussion] AndroidDeveloperLB:
I have a Pixel 4 with the exact issue as on the post (all sensors aren't working).

Has anyone fixed this issue on Pixel 4?

If so how?

Does the solution for Pixel 3 XL work for it?

How can I find the files that are mentioned?
[Google Pixel 3 XL Guides, News, & Discussion] MrLinks75:
Looking for Sailfish files

Hey everyone,

Just stumbled upon that issue with sensors recently on a stock Google Pixel OG (Sailfish) ; none rooted and not flashed, everything was updated through official and beta channels.

If anyone got the correct file for this version, that would be awesome, thanks !
[Google Pixel 3 XL Guides, News, & Discussion] mokijoki:
Finally after months the sensor issue got fixed with the March update for me..sjeez.. thanks Google. Better late than never.....
[Google Pixel 3 XL Guides, News, & Discussion] smoki3:
Yeah it is working since march

UPDATE

After locking the bootloader it is broken again
[Google Pixel 3 XL Guides, News, & Discussion] aollen:
All the Google sensors (gravity sensors, game vector sensors, linear acceleration sensors) in my mobile phone have failed. I have restored the factory settings, or I have tried to flash the firmware, but it has not been repaired, and sometimes other types of sensors (Light sensor, ambient light sensor, proximity sensor) will also fail, how to solve this?：愚蠢：
[Google Pixel 3 XL Guides, News, & Discussion] N-Demitsuri:
I bought my Pixel 3a XL several weeks ago and everything was fine. It shipped with Android 10 (i think it was 2019-12 build), and updated to the latest build (2020-03). And it also worked fine. But this week I rebooted the phone (i think it was the first reboot after the updating). And now I have several screen related issues.

I wonder if these issues are related to the topic or not? How can I be sure that my sensor files are corrupt?

I generated a tar.gz file of 'mnt/vendor/persist/sensors' (post #465) and it is less 1 MB (not about 5 MB like in the above-mentioned post). Does it tell that sensor files are corrupted?

My issues:

1. Always On Display (AOD) not working.

2. If both AOD and 'New Notifications Wake Screen' features are enabled then notification do wakes the screen and then AOD appears but AOD display brightness will be maximum and the display will not response to light/proximity sensors changes.

3. If I change the brightness level manually by swiping on the slider from left to right, then brightness level will not increase gradually, it will have one point with very dimmed screen (at about 87%).

4. Display colors are unsaturated and washed out though colors in fastboot/recovery/etc are correct.

Sensor Lab shows that proximity and light sensors are fine.

I tried Safe Mode / Factory Reset / flash 9/10/11.

UPDATE^

No more issures after latest april ota update. Keeps working after reboot too.
[Google Pixel 3 XL Guides, News, & Discussion] mokijoki:
Yup... For me also after reboot all sensors dead again so was cheering to early.

Anybody able to post the persist folder of a working Pixel 3aXL?
[Google Pixel 3 XL Guides, News, & Discussion] N-Demitsuri:
Here is tar.gz file of 'mnt/vendor/persist/sensors' for Pixel 3a XL (generated like at post #465). I asked my friend to do it, his phone has no issues. It didn't help me but it may be usefull for others.

Phone: Pixel 3a XL 'bonito', model G020C, build march 2020.

drive.google.com/open?id=1Y4G3kWJJEG2b1BEosbZbU05fqU_7iqP3

(I can't post links or attach files so you need to copy the link manually.)
[Google Pixel 3 XL Guides, News, & Discussion] obtuce:
Both our household non-rooted pixel 3 and 3xl both are having this issue. Google support was no help. They ask for a bug report however it never "bugs", the sensors are just non existent.

The 3 methods provided here are too complex to just "give it a shot". Bunch of morons on the google team for taking us for their beta testers. Funny how samsung doesn't have any issues but the stock version does... Bunch of clowns. Last time getting google hardware. What a shame.
[Google Pixel 3 XL Guides, News, & Discussion] santod040:
I know this has been ongoing for some and no real solid solution for "all" cases, but...

Have you tried running them in Safe Mode, just to rule out any 3rd party app or utility that could potentially be interfering?

That's definitely easy enough and certainly worth trying, if you haven't.
[Google Pixel 3 XL Guides, News, & Discussion] obtuce:
Yes, that was step 2 on Google's troubleshooting tests.

Thanks for the suggestion though :)
[Google Pixel 3 XL Guides, News, & Discussion] VoodooGod:
I have Pixel 3 XL, and your file did not work for me. Still no sensors. :(
[Google Pixel 3 XL Guides, News, & Discussion] VoodooGod:
Here's what I have tried:

* Made backup of persist and tar'd up the sensors directory

* Extracted sensors from here: https://xdaforums.com/showpost.php?p=80833171&postcount=465

- result: sensors not working

* Restored my old sensors files (since the other ones didn't work)

* Manually reviewed diffs of every single sensor file, and none of the files in my sensors directory seem to be corrupt.

* Downgrade to 9 (w/out wiping data). result: sensors not working

* Re-Upgrade to 10 (w/out wiping data). result: sensors not working

* Downgrade to 9 (wiping data). result: sensors not working

* Upgrade to 10 (wiping data again). result: sensors not working

* Upgrade to Android 11 DP3 (wiping data). result: sensors not working

* Downgrade to 10 (wiping data). Rebooted a handful of times until I finally got some sensors working.

Have not tried:

* Wiping entire persist partition.

* Restoring from someone else's persist image. (Haven't been able to find this. I'm sure it's buried somewhere in these 50 pages, but I could use a post number if someone has it.)

So now, the following works:

* Proximity sensor

* Squeeze action to bring up Google Assistant

* Pressure sensor

* Light sensor

Not working:

* Accelerometer

* Gravity sensor

* Compass

* Temperature sensor

Any one have any more ideas?
[Google Pixel 3 XL Guides, News, & Discussion] obtuce:
Would flashing a custom rom possibly fix the sensor issues?? I am guessing no since the last guy flashed a few different stock versions.
[Google Pixel 3 XL Guides, News, & Discussion] santod040:
Neither a stock Rom nor a custom Rom touches the effected persist partition.

So, no, flashing a custom rom will have zero effect on the sensor issue...as has been discussed since the onset of the problem.
[Google Pixel 3 XL Guides, News, & Discussion] VoodooGod:
I am with you on that since that's the whole purpose of that partition, but there was a lot of discussion early on about downgrading to Pie working for some people. And some theorizing that persist partition somehow got automatically corrected if you re-flash the factory image. Which made no sense to me, but I figured what the heck. I'll try it.

In fact, it was you that suggested the possibility of wiping out the persist partition and then flashing the factory 10 image potentially fixing it, wasn't it? https://xdaforums.com/showpost.php?p=80199582&postcount=115

If someone can hook me up with a persist.img from a working Pixel 3 XL, I would really appreciate it. I know that means my calibration data will be for another phone, but it's worth a shot. I couldn't tell if this one was for Pixel 3 XL, and the link is dead now anyway:
[Google Pixel 3 XL Guides, News, & Discussion] santod040:
Yes, it was here that I posted the first suspicion that it was the /persist partition that was being corrupted and tried to give others a particular suspect to focus on.

https://xdaforums.com/showthread.php?p=80194778

Which that part was indeed correct, the unfortunate thing, was that it was not able to simply repair itself after a wipe, unlike my previous experience on an older/different device.
[Google Pixel 3 XL Guides, News, & Discussion] grikster:
Hello guys.

With the latest May update my Pixel 3 (normal size) lost sensors. They stopped working the front cameras ones.

Can someone point me in the right direction to solve?

Boot mode test confirms that is non app related.

I didn't want to go custom rom I would like to maintain original google without root but if I have to root I will of course just to solve this.

Edit 1: after a couple of reboots all sensors started working again. It's really strange and inconsistent. Let's see how long they keep working.

Thank you all
[Google Pixel 3 XL Guides, News, & Discussion] cle_m_ent:
Hello everyone.

I am very disappointed about google.

All this report for nothing at all and so many bricked Devices...

It's a shame.

My March 2019 old Pixel 3 have the Sensor bug.. He was never never touched. No Root, no bootloader unlock...

And until now, no sensor after 50 thread page and many many try... Keep the community alive, but after 11 year with Android, I'm a happy iPhone user since December...

My phone will go in garantie and I hope I will be refund....

Regards
[Google Pixel 3 XL Guides, News, & Discussion] ultimatepichu:
Ermm, I think you didn't understand the whole picture in this thread. This issue is solved. The main problem is the sensors stopped working in Android10, but the sensors work again when reverted back to Android Pie. The cause was TWRP used a folder "persist" when generating logs and it corrupted sensors calibration data in that particular folder, due to partition sizes. The solution is to restore that folder using files from other users that are not corrupted. We are happy Pixel3XL users now.
[Google Pixel 3 XL Guides, News, & Discussion] romanticnutan:
Hello . What is the solution for pixel 2xl.? I didn't find directory. Mnt>vendor is empty??
[Google Pixel 3 XL Guides, News, & Discussion] tundrawolf89:
So just thought I'd share my experience since like many mentioned, loss of many of the sensors.

Started off at the time doing a flash by the book going from 9 to 10, no TWRP ever and i lost all my temperature sensors and major wake lock issues with proximity sensor.

So akward trying to hang up a phone call when your screen remains seemingly asleep. Lol

I must've read through 100 logs, and at best i was able to restore wake lock and 4 measely temp sensors specifically for cpu monitoring only. Couldn't get the others.. until today.

Not sure wtf happened or what I did, but suddenly everything works. Current setup is :

Pixel 3 xl

Magisk 20.4 stable

Elemental 2.16

Magisk modules:

Systemless Hosts, BusyBox , vanced and adb& fastboot

More importantly, I have access to about 37 ~ separate temperature/pressure.

(temp + pressure have a relationship where one can be converted to the other by Science ?)

On my 2xl I think I was able to happily see about 10 or so using Flars Dev Check Pro, same amount initially with the 3xl... Then suddenly much less.... But now!?

37 individual temp readouts.

If you guys have way different, or not nearly that many and want a list I'll post it for reference.

All other sensors work well now too, the camera in particular better than ever . It was kinda freaking out for while.

I had tried Kirasakura , lineage OS , tweaking flags, exorcist by Father Chronos himself, none fit the ticket in it's entirety.. Idk what changed ¯\_(ツ)_/¯
[Google Pixel 3 XL Guides, News, & Discussion] BRMX7:
Can anyone make a video or something, i've already rooted my pixel 3xl but when i try look for the root/mnt/vendor/sensors there is no such folder, there is only an archive called vendor, i tried installing adb root magisk module to adb push the files from my computer in the terminal to the phone but when i tried this command adb root push sensors root/mnt/vendor/sensors it started to show like the process was performing but after a while nothing happened, so i decided to unplug the phone from the computer and the sensors still didn't work.

I had to say when I flashed android 10 latest version, build number QQ3Q.200605.001 the sensors weren't functioning at first but after a couple minutes worked except from the proximity sensor, light sensor and temperature sensor think so...

I've already downgraded the android version to 9 pie with no luck, in this build any of the sensors seemed to work

Even in android 11 beta most of the sensors were functioning except for the light sensor and temperature sensor think so, (all the sensors related with adaptive brightness, always on display, wake up when taking the phone...

So if anyone can show me the right process to find the mentioned folder and copy the required files I'll be very grateful ?
[Google Pixel 3 XL Guides, News, & Discussion] David B.:
I was not aware that a Magisk module to fix this problem had been made. Knowing that, you have several options. You can install the module through the Magisk manager app and reboot your phone, or you can use a custom recovery like TWRP to sideload the module using ADB.
[Google Pixel 3 XL Guides, News, & Discussion] BRMX7:
I installed the magisk module (adb root) to allow writing into root/mnt/vendor/sensor because when i tried without installing it, showed an error in command prompt saying something like acces denied or can't write on that route because it was read only I don't remember well.

What if I don't have the vendor folder in first place? There is only an archive inside root/mnt called vendor but not a folder?

Can anyone post how the root/mnt/vendor/sensors directory should look like

What is the exact process to copy the files provided to the indicated directory?

Do I have to place the sensors folder inside root/mnt/vendor or place the files inside the provided sensors folder in root/mnt/vendor/sensors ?
[Google Pixel 3 XL Guides, News, & Discussion] BRMX7:
I managed to find what was wrong with the missing folder, it was something to do with the file explorer I was using.

But now the problem is when i try to push via adb shell the folder into root/mnt/vendor i get this error

C:\Program Files\platform-tools>adb push sensors /root/mnt/vendor/persist
adb: error: failed to copy 'sensors\sensors_settings' to '/root/mnt/vendor/persist/sensors_settings': remote secure_mkdirs failed: Read-only file system
adb: error: failed to read copy response

Any idea on how to write onto that "Read-only" file system?

Or any other easier method?

Also I don't know if there is a problem with the root partition showing 0b free of 778.02Mb that is interfering with the copy of the sensors folder.
[Google Pixel 3 XL Guides, News, & Discussion] David B.:
How closely are you following these directions?

https://xdaforums.com/showpost.php?p=80200728&postcount=191
[Google Pixel 3 XL Guides, News, & Discussion] BRMX7:
[/COLOR]

I'm using edit 5 method the one of placing the provided sensor.tar files on root/mnt/vendor/sensors

not edit 2 but I could try the 2 edit method the only thing is I don't know where to get the img file

The thing is that I don't know how to push the sensor folder provided by op into root/mnt/vendor/

I just need to know how to do it
[Google Pixel 3 XL Guides, News, & Discussion] David B.:
The original img file was posted here: https://xdaforums.com/pixel-3-xl/how-to/android-10-sensors-bug-t3964904/post80199456#post80199456

But it seems that [MENTION=4860777]alpinista82[/MENTION] has deleted it from his Google Drive. It would be nice if he could repost it.
[Google Pixel 3 XL Guides, News, & Discussion] BRMX7:
I searched around the post and found a backup link you provided in one commentary ? thank you

I managed to make most of my sensors work again but no luck with LIGHT sensor , proximity sensor and temperature sensor

Anyone knows if this command:

dd if=/sdcard/sensors of=/mnt/vendor/persist

Will copy the sensors folder from main storage to root persist folder? I kind of managed to came with it (I'm new into this) and didn't find any information to know how to write the command

After flashing the img file everything worked fine except for(LIGHT sensor , proximity sensor and temperature sensor) I turned off the phone and turned it on again and all the sensors failed again, then I rebooted the phone, after turned off it, turned on it again, rebooted into safe mode, it took almost a minute and the sensors worked, rebooted the phone in normal mode, and again sensors didn't work after almost a minute ?, what could be causing this?
[Google Pixel 3 XL Guides, News, & Discussion] randomguy100:
Came across this reddit post (search "pixel_3_all_sensors_fail_fixed")

Apparently disconnect from Pixel Stand somehow works...

In my case, disconnect from Mazda worked! Something to do with Android Auto for reasons that are way beyond me.
[Google Pixel 3 XL Guides, News, & Discussion] David B.:
Oh wow I totally forgot that I posted that. ?

Have a look at the way I structured the dd command in my instructions.
[Google Pixel 3 XL Guides, News, & Discussion] romanticnutan:
i had a problem with my pixel 2xl camera. i follwed this post and run the dd command to remove persist.img. then i flashed android 10. but my phone stuck at google logo. then i flashed every version android 11 9 8 but it wont boot. flashing is always complete succefully but it wont boot. please give me some solution.

---------- Post added at 09:06 AM ---------- Previous post was at 09:03 AM ----------

i had a problem with my pixel 2xl camera. i follwed this post and run the given dd command to remove persist.img. then i flashed android 10. but my phone stuck at google logo. then i flashed every version android 11 9 8 but it wont boot. flashing is always complete succefully but it wont boot. please give me some solution
[Google Pixel 3 XL Guides, News, & Discussion] David B.:
This thread is for the Pixel 3 XL, and the persist.img for the 3 XL is not intended or flashing on the 2 XL.
[Google Pixel 3 XL Guides, News, & Discussion] romanticnutan:
yeah i know but. you can give me some idea on how should i revive my phone. how should i re flash persist.img after i get persist.img for pixel 2 xl. i can flash twrp but i cannot boot any os.
[Google Pixel 3 XL Guides, News, & Discussion] David B.:
I would suggest using TWRP to format your device. Then flash a 2 XL persist.img, and after that, reflash Android.

As for the persist.img flashing instructions, this is how I did it when fixing the problem on my 3 XL. I would expect the instructions to be transferable.

https://xdaforums.com/showpost.php?p=80200728&postcount=191
[Google Pixel 3 XL Guides, News, & Discussion] krs360:
Just got my phone back from an insurance repair of the screen and none of the sensors are working. I don't want to have to send it back to them!

Can I just check, are the persist.img files dependent on the version? If so, can someone post for QQ3A.200605.001.

Thanks!
[Google Pixel 3 XL Guides, News, & Discussion] pixel3a_user:
tar files for pixel 3a

I, just bought a used pixel 3a which has these problems. I want to fix them but I have no access to a rooted pixel 3a. Can therefore someone share the following folder with me: root/mnt/vendor/persist/sensors for the Pixel 3a . It would be of great help.
[Google Pixel 3 XL Guides, News, & Discussion] andrekowisky:
Same problem here. There was just one time that I rebooted the phone and all sensors except the proximity one worked. But the phone died and when I finished recharging it, none of them worked. So definitely a problem with this partition. Really upsetting the fact that google doesn't solve it.
[Google Pixel 3 XL Guides, News, & Discussion] Slomies:
I followed your instructions and used the persist.img for Blueline that is posted in the thread and everything works properly except for my proximity sensor on Android 10. If I use an app that tests the proximity sensor, then it works like it should (ex. Proximity Sensor Test 2, Sensor Box for Android). I've also tried a few other "fixes" in this thread but none have fixed my issue. Any suggestions to try? I thought about downgrading to 9, installing TWRP again, formatting and installing persist.img using TWRP, then upgrading back to 10... If I can get my Pixel 3 (blueline) to work properly again I'll consider canceling my Pixel 4a pre-order.