WarrantyVoider
Android Enthusiast
OK, some people have been waiting for a sensor fix and a file system checker. I rarely encounter the sensor issue and I haven't run into the file system error issue. I was trying to reproduce those problems for testing, but it'd take some time. So instead, if some testers want to try these out and let me know if they fix the problems, it'd save me a lot of time. Thanks.
Four files:
-sensorfix.zip
You don't need this if your sensors work after a reboot. This is for people whose sensors only work sometimes or not at all after reboots. Flash once to install a script. The script should automatically run at every boot.
I think I've said there might be a cleaner solution to the sensor issue. Well, it turns out to be a complicated situation. It'd make the solution a lot more complex. So this file is based on the workaround proposed by likwid2 (#234). It simply restarts sensord if it's already loaded. Now, sensord isn't universal (doesn't exist on all phones/tablets) but for this phone it probably exists on all roms. Let me know if this is not the case.
-fsck-ondemand.zip
This simply checks the 2nd partition (with ext4) on the SD. You run it manually when your file system has errors so that the partition can't be mounted. It does not install anything. This basically runs "e2fsck -y /dev/block/mmcblk1p2" which is the way Android checks the internal partition. It will force-correct file system errors, but understand that there might be data loss.
It might be possible to make a file system check at every boot or when mounting fails. But really file system errors should not occur frequently at all, or otherwise you're at constant risk of data loss. So if an on-demand checker is not enough, perhaps let me know your situation so I may understand why file system errors occur more than they are supposed to. Maybe the way ext4 writes journal+data causes problems with SD's large erase blocks or something.
-uninstall.zip
The uninstaller is updated to also remove the sensor fix if that's installed. So if you use the sensor fix, replace the old -uninstall.zip with this. I forgot to test this. I will fix it if I discover a mistake later.
-restore.zip
This is an update to the -restore.zip in #460. There was a minor bug in the old one. I mistakenly used a default command (Android toolbox's "chcon") instead of the busybox version. The effect was that the selinux label (so only for KK) for one particular directory would be set incorrectly after a restore. Sorry about that.
Edit: Check the -sensorfix version in #505, which adds a 1-second delay between stopping and starting sensord.
Four files:
-sensorfix.zip
You don't need this if your sensors work after a reboot. This is for people whose sensors only work sometimes or not at all after reboots. Flash once to install a script. The script should automatically run at every boot.
I think I've said there might be a cleaner solution to the sensor issue. Well, it turns out to be a complicated situation. It'd make the solution a lot more complex. So this file is based on the workaround proposed by likwid2 (#234). It simply restarts sensord if it's already loaded. Now, sensord isn't universal (doesn't exist on all phones/tablets) but for this phone it probably exists on all roms. Let me know if this is not the case.
-fsck-ondemand.zip
This simply checks the 2nd partition (with ext4) on the SD. You run it manually when your file system has errors so that the partition can't be mounted. It does not install anything. This basically runs "e2fsck -y /dev/block/mmcblk1p2" which is the way Android checks the internal partition. It will force-correct file system errors, but understand that there might be data loss.
It might be possible to make a file system check at every boot or when mounting fails. But really file system errors should not occur frequently at all, or otherwise you're at constant risk of data loss. So if an on-demand checker is not enough, perhaps let me know your situation so I may understand why file system errors occur more than they are supposed to. Maybe the way ext4 writes journal+data causes problems with SD's large erase blocks or something.
-uninstall.zip
The uninstaller is updated to also remove the sensor fix if that's installed. So if you use the sensor fix, replace the old -uninstall.zip with this. I forgot to test this. I will fix it if I discover a mistake later.
-restore.zip
This is an update to the -restore.zip in #460. There was a minor bug in the old one. I mistakenly used a default command (Android toolbox's "chcon") instead of the busybox version. The effect was that the selinux label (so only for KK) for one particular directory would be set incorrectly after a restore. Sorry about that.
Edit: Check the -sensorfix version in #505, which adds a 1-second delay between stopping and starting sensord.
Attachments
Last edited: