Enables ATP binding activity, magnesium ion binding activity, and protein serine/threonine kinase activity. Involved in several processes, including cellular response to glucose starvation, negative regulation of apoptotic process, and protein phosphoryl