sich lieb Kind machen

Etymology
lit. 'to make oneself dear child to someone'.

Verb

 * 1)  to curry favor