What's Andrews' Game?

I'm curious about the exchange between Glassman and Andrews and in a later episode, Andrews speaks to Shaun and Brown:
"Just a friendly warning I know you have no interest in helping Shaun. You figure you'll give him a little authority, he'll screw something up, and then you'll be done with him, and then you'll be done with me."
"Either way, if he succeeds, I'm the guy who just backed him. And if he fails, I'm the president."
"I’m guessing Melendez doesn’t let you know this enough but you both are doing a great job and if either of you need anything even just to talk my door’s always open."

Just what is Andrews' game? He seems to be a threat in the first conversation and an ally in the second. Is there something between the lines I'm not reading?