First of all, i would like to mention that these libs are taken from @ rooque 's github repository which he uses for omni rom. So, he really deserves the credit for this fix.So, here is a zip file which u can flash using CWM/TWRP which fixes the compass. I have tried it on aicp and it was working. Please test and report for other roms.PS:- Dont forget to caliberate ur compass. This app will do great for calibration: https://play.google.com/store/apps/d...sstatus2&hl=en Thanks !