Fix sql error on some cases (on some android) not get CPU frequency. closes #2659