added changes to GMS and procmem and procrank from cyanogen