Fix sensor bug in some androids