FORUMS
Remove All Ads from XDA

[FIX][Flashable ZIP] All sensors stopped working

272 posts
Thanks Meter: 560
 
Post Reply Email Thread
Good morning everyone (or good night :P )
A few weeks ago (suddenly) all the sensors on my smartphone stopped working, (proximity, accelerometer, gyroscope, etc).
Look everywhere, I followed many guides and I could not make it work.
While searching I saw that several oneplus had problems with the sensors and the only solution they gave was to do a factory reset, hit the phone until it works or return it to the factory and wait for a replacement.
So I decided to check all the folders of the system and found the solution.

This .zip delete the sensor settings without wiping the data partition and also eliminates settings that aren't deleted with a full wipe (in persist folder).
The system will create these files again and the sensors will work again.

And here I leave them in the form of .zip flasheable.
I hope they solve the problem as I do. :P


Reboot in TWRP (Make a full backup) and flash the .zip

Downloads in attached files
Attached Files
File Type: zip FIX Sensors.zip - [Click for QR Code] (157.3 KB, 1206 views)
The Following 6 Users Say Thank You to MatiasLopezxD For This Useful Post: [ View ] Gift MatiasLopezxD Ad-Free
3rd July 2017, 12:04 AM |#2  
Didgeridoohan's Avatar
Forum Moderator
Thanks Meter: 7,908
 
Donate to Me
More
Looking in the zip it looks like it's a matter of deleting a bunch of sensor folders, correct?

Would love a bit of an explanation on the whats and whys and the ins and outs..
The Following User Says Thank You to Didgeridoohan For This Useful Post: [ View ] Gift Didgeridoohan Ad-Free
3rd July 2017, 04:41 AM |#3  
OP Senior Member
Flag Mendoza
Thanks Meter: 560
 
More
Quote:
Originally Posted by Didgeridoohan

Looking in the zip it looks like it's a matter of deleting a bunch of sensor folders, correct?

Would love a bit of an explanation on the whats and whys and the ins and outs..

Post updated with a few little explanations(?
The Following User Says Thank You to MatiasLopezxD For This Useful Post: [ View ] Gift MatiasLopezxD Ad-Free
9th July 2017, 06:02 AM |#4  
Junior Member
Thanks Meter: 0
 
More
i try it.........nothing happen with the sensor and still not working, and it ruin my sd card reading. Said that my sd card error....sigh...
3rd April 2018, 06:17 PM |#5  
sauliiin's Avatar
Senior Member
Flag Belo Horizonte
Thanks Meter: 311
 
More
Quote:
Originally Posted by MatiasLopezxD

Good morning everyone (or good night :P )
A few weeks ago (suddenly) all the sensors on my smartphone stopped working, (proximity, accelerometer, gyroscope, etc).
Look everywhere, I followed many guides and I could not make it work.
While searching I saw that several oneplus had problems with the sensors and the only solution they gave was to do a factory reset, hit the phone until it works or return it to the factory and wait for a replacement.
So I decided to check all the folders of the system and found the solution.

This .zip delete the sensor settings without wiping the data partition and also eliminates settings that aren't deleted with a full wipe (in persist folder).
The system will create these files again and the sensors will work again.

And here I leave them in the form of .zip flasheable.
I hope they solve the problem as I do. :P


Reboot in TWRP (Make a full backup) and flash the .zip

Downloads in attached files

Worked for my old Samsung galaxy note 3!
20th April 2018, 11:49 PM |#6  
Senior Member
Thanks Meter: 39
 
More
Oooh, I had some modules do this, had to flash stock again. Awesome!
8th October 2019, 04:26 PM |#7  
Junior Member
Flag Rome
Thanks Meter: 0
 
More
Redmi note 7 with proximity sensor dead.
Flashed via TWRP and fixed the problem.
God Bless
4th November 2019, 09:51 AM |#8  
hasanin.xaidi's Avatar
Member
Flag Islamabad
Thanks Meter: 9
 
More
Quote:
Originally Posted by MatiasLopezxD

Good morning everyone (or good night :P )
A few weeks ago (suddenly) all the sensors on my smartphone stopped working, (proximity, accelerometer, gyroscope, etc).
Look everywhere, I followed many guides and I could not make it work.
While searching I saw that several oneplus had problems with the sensors and the only solution they gave was to do a factory reset, hit the phone until it works or return it to the factory and wait for a replacement.
So I decided to check all the folders of the system and found the solution.

This .zip delete the sensor settings without wiping the data partition and also eliminates settings that aren't deleted with a full wipe (in persist folder).
The system will create these files again and the sensors will work again.

And here I leave them in the form of .zip flasheable.
I hope they solve the problem as I do. :P


Reboot in TWRP (Make a full backup) and flash the .zip

Downloads in attached files

Can you please share Proximity and ambient sensor's files.
I did try your method, but unfortunately didn't work
5th November 2019, 09:49 AM |#9  
Senior Member
Thanks Meter: 10,384
 
Donate to Me
More
Quote:
Originally Posted by MatiasLopezxD

Reboot in TWRP (Make a full backup) and flash the .zip

The persist partition isn't mounted on current twrp (3.3.1-0).

Therefor
Code:
delete_recursive("/persist/sensors/sns.reg");
will do nothing. (Check the recovery.log after flashing - this may be the reason, why it's not working for @hasanin.xaidi)

Before messing with the persist partiotion it's mandatory to backup persist manually (twrp doesn't offer an option - use dd), or your device may end up like this: https://forum.xda-developers.com/one...tooth-t3991339

BTW: unmounting data is a bad idea. Especially if the zip you are doing the unmount data in is stored in data (unmount will fail, because the device is busy).

EDIT:
busybox has been removed in newer twrp versions. So the mount command on data will fail - which doesn't hurt, since data is mountec anyway, if you flash a zip stored in data.

The zip needs some adjustment to newer twrp versions!
Post Reply Subscribe to Thread

Tags
fix, flashable .zip, rotate issue, sensor issue, sensor problem

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes