Enabling mining on mobile phones