How Android devices detect early quakes