Here is how touch rotation can be fixed in Android sources:
https://groups.google.com/forum/#!ms...c/7Zkh-WE1uuEJ
The problem is - last time I was trying to compile Android from source codes I failed with compiling 2.3.4 version. I succeeded to compile 4.2.2 or newer only.